Possible Duplicate:
Using windows authentication with php?
I built a php intranet web application that allow users to show their information stored in Active Directory.
my application works perfectly ,but before the user can see his info he has to login using his Windows credentials.
I want to auto authenticate the user over the Active directory using his windows credentials that he entered them when he logged in to the windows.
I successfully got the username of the current user using NTLM witch is described in this article: http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/
I know that I have to use LDAP to retrieve user attributes from AD.
I know how to do that, but the problem is:
I need the current user password to use it in @ldap_bind function.
is there any way to retrieve the password of the current user???
I am working on Windows 7 I am using Apatch 2.2, php5
Thank you in advance.