Drammy
asked on
Using PHP to determine the NT username of user on Apache
Hi all,
I want to find out the username of the user connected to my intranet, hosted on an Apache server. I have tried a few recommendations thus far an none have worked.
Any ideas where I could be going wrong?
Martyn
I want to find out the username of the user connected to my intranet, hosted on an Apache server. I have tried a few recommendations thus far an none have worked.
Any ideas where I could be going wrong?
Martyn
ASKER
Thanks for getting back to me ERNesbitt.
I'm not using an Active Directory (quite old infrastructure). Although I would like the user to login in automatically with their windows login.
I'm not using an Active Directory (quite old infrastructure). Although I would like the user to login in automatically with their windows login.
Is it on a domain?
ASKER
Yes it is
mod_auth_sspi would probably work, but I don't know if it returns or logs the username anywhere. It will allow you to restrict access to domain users or groups, though.
http://sourceforge.net/projects/mod-auth-sspi/
http://sourceforge.net/projects/mod-auth-sspi/
ASKER
and how would I use it?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Here is Apache's mod_auth_ldap page: http://httpd.apache.org/docs/2.0/mod/mod_auth_ldap.html