December 26th, 2009, 10:07 AM
PHP and Active Directory
Hello every body..
I'm new in here.
First and foremost, I wish everyone a Merry Christmas and a Happy New Year..
I have a few questions:
- I have some users already logged into the domain, is it possible to use their Windows sessions instead they must log on my website which is Active Directory user protected?
So then it is possible for my users do not need to log in, but automatically logged into my user protected page. They use Windows session?
Can this be done?
My second question is whether it is possible to change the password on its own website? So change it directly in Active Directory from my website.
January 27th, 2010, 09:42 AM
You can use mod_authz_ldap and put this in an .htaccess file;
Originally Posted by hoevring
However, even in IE a pop up box will appear requiring a valid user and I am trying to bypass this but have not found the answer yet. Once logged in, you can use php to get the username by using $_SERVER['PHP_AUTH_USER'] variable.
AuthName "My company"
Last edited by kbradwick; January 27th, 2010 at 09:46 AM.