Page 1 of 1

[HELP] Using Windows Logon username in PHP

Posted: Wed Apr 14, 2004 5:02 am
by jetze
I'm trying to create a portal Intranet PHP using the Single Sign-On technology.

Is there any way that I can use the username logged in via Winlogon (probably will be replaced by LDAP server by PGina and LDAPAuth) in the portal Intranet PHP, which means the user doesn't have to log in again for the portal Intranet.

Any suggestion will be highly appreciated.

Posted: Wed Apr 14, 2004 8:15 am
by TheBentinel.com
There's a server variable USER_LOGON or something like that, you can google it for sure. But the trick is that it's only populated if the server is set to not allow anonymous access. If anon is allowed, you won't get the value.

Posted: Thu Apr 15, 2004 3:10 am
by jetze
I found it, it is stocked in the environment variable USERNAME...
Thanks a lot for the clue...