Web Intranet Corporate Auto Login using existing user information
Posted on 2009-05-13
I am building an intranet for a client using Apache, PHP and Zend Framework. They have a corporate network with roaming profiles and active directory. The intranet will only be accessible from inside the network and not externally. They use IE7 only.
What they want is to automatically authenticate by knowing the current user. They do not want to have to log in a second time.
I know I can query the LDAP Active Directory server and authenticate with the same username and password but they specifically do not want to log in again.
I do not think this is possible, how can a PHP script know what the current user is? Hopefully someone can tell me different.
Is there some Active X module that will add the username to the $_SERVER or similar? All I need to get to authorise is the username because the site is only accessible internally and everyone that access the http server has to be logged on and authenticated with the network.
If all else fails I will authenticate with the LDAP server and just have a cookie but if I could do it it would be awesome.