[HELP] Using Windows Logon username in PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jetze
Forum Newbie
Posts: 6
Joined: Wed Apr 14, 2004 3:29 am

[HELP] Using Windows Logon username in PHP

Post 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.
TheBentinel.com
Forum Contributor
Posts: 282
Joined: Wed Mar 10, 2004 1:52 pm
Location: Columbus, Ohio

Post 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.
jetze
Forum Newbie
Posts: 6
Joined: Wed Apr 14, 2004 3:29 am

Post by jetze »

I found it, it is stocked in the environment variable USERNAME...
Thanks a lot for the clue...
Post Reply