How to get user login name under IIS through 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
m_mak
Forum Newbie
Posts: 1
Joined: Sun Jan 25, 2004 10:38 pm

How to get user login name under IIS through PHP

Post by m_mak »

Hi Everyone,

I want to do sth like single sign-on of the website using php under IIS. :?:

Would like how to get network user login name so that able to identify user without pompt to ask for username and password. Users r under a same domain network using Win2K.

Many Thanks,
m_mak
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Check out the output of:

Code: Select all

echo '<pre>';
print_r($_SERVER);
echo '</pre>';
I'm able to get the logon name from $_SERVER['REMOTE_USER'].

Mac
Post Reply