LDAP Authentication

How to enable PHP LDAP extension?

714 views January 2, 2020 sakshi 1

 Step 1

      Loaded configuration file : C:\xampp\php\php.ini

  • Open php.ini file from above file path

Step 2

      For Windows users using Apache Server

  • Search for extension=php_ldap.dll in php.ini file. Uncomment this line, if not present then add this line in the file and save the file.

     For Windows users using IIS server

  • Search for ExtensionList in the php.ini file. Uncomment the extension=php_ldap.dll line, if not present then add this line in the file and save the file.

     For Linux users

  • Install php ldap extension (If not installed yet)
    • For Debian, the installation command would be apt-get install php-ldap
    • For RHEL based systems, the command would be yum install php-ldap
  • Search for extension=php_ldap.so in php.ini file. Uncomment this line, if not present then add this line in the file and save the file.

Step 3

  • Restart your server. After that refresh the LDAP/AD plugin configuration page.

Was this helpful?