PHP-LDAP Authentication for Single Sign-On

Implementation of LDAP-Authentication using php and OpenLDAP library which can be used for authentication of Active directory users in php forms. OpenLDAP Software is an open source implementation of the Lightweight Directory Access Protocol.

To install ldap extension on Debian

sudo apt-get install php-ldap

and on Centos

sudo yum install php-ldap

Modify php.ini to add

and restart the httpd service

Refer for more details about installation and configuration.

ldap_authenticate.php file contains ldap_authenticate() function

Login.php ( with CSS for styling the login form)



Please follow and like us: