Hello, I am developing php and mysql on my local workstation with apache installed and phpmyadmin. Now, my question is I would like to be able to use the window authentication with php, how can I do that?
Printable View
Hello, I am developing php and mysql on my local workstation with apache installed and phpmyadmin. Now, my question is I would like to be able to use the window authentication with php, how can I do that?
Assuming you're using AD, you would need to build a script, or find an open source one, that checkes against the AD. If you google PHP LDAP authentication, it should yield plenty of results to get you started.
Or do you mean just normal windows authentication? PHP is a server side script and cannot interact with the users machine in that way.
There are two parts to implementing Integrated Windows Authentication using a non IIS stack:
— reading the user credentials from the client;
— validating the credentials against the Active Directory server.
For part one please take a look at this project: Kerberos Module for Apache.
Part two can be done using LDAP as kfcSmitty suggests.
Bear in mind that Integrated authentication is only natively supported on the client side by Internet Explorer.