Link to home
Start Free TrialLog in
Avatar of Drammy
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
Avatar of ERNesbitt
ERNesbitt
Flag of United States of America image

Assuming you want the user to log in to the intranet with their windows login, mod_auth_ldap is probably what you would need to use if you're using an Active Directory server system.

Here is Apache's mod_auth_ldap page: http://httpd.apache.org/docs/2.0/mod/mod_auth_ldap.html
Avatar of Drammy
Drammy

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.
Is it on a domain?
Avatar of Drammy

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/
Avatar of Drammy

ASKER

and how would I use it?
ASKER CERTIFIED SOLUTION
Avatar of ERNesbitt
ERNesbitt
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial