windows-users

Get Windows username of current user using php? [duplicate]

老子叫甜甜 提交于 2019-11-28 10:10:51
Possible Duplicate: How to read Windows loged in username with PHP/IIS I'm work on php tool that generate Data Access layer and generate some folders and files to user but i need to know how can i get username for current windows user to generate these folders on desktop ex: C:\\users\\<username>\\desktop I need to know the username. Thanks If by current windows user you mean the user running the script then that is set in an environment variable which you can get using: <?php echo getenv("username"); ?> If you want to get the home directory of the user running the script you should use <?php

Retrieve current Windows user in Java EE web application for Single Sign On purposes

混江龙づ霸主 提交于 2019-11-26 22:46:26
I am doing a Java EE web application that requires Single Sign On with Active Directory. The application will no longer prompt for a username and password. The authentication process would require retrieval of the current Windows logged on user. Once I have the user, I need to query Active Directory to get the roles for that logged on user. I am aware that this will exclude non-Windows users, but this is an internal application and all clients are using Windows. I have to implement the SSO in 2 Java EE web applications. 1 application is runnning on GlassFish v2.1.1 (JDK 1.6) and the other is

Retrieve current Windows user in Java EE web application for Single Sign On purposes

天涯浪子 提交于 2019-11-26 08:26:21
问题 I am doing a Java EE web application that requires Single Sign On with Active Directory. The application will no longer prompt for a username and password. The authentication process would require retrieval of the current Windows logged on user. Once I have the user, I need to query Active Directory to get the roles for that logged on user. I am aware that this will exclude non-Windows users, but this is an internal application and all clients are using Windows. I have to implement the SSO in