Skip to content

Instantly share code, notes, and snippets.

@ssiva13
Created June 29, 2022 10:24
Show Gist options
  • Save ssiva13/16480feae02061ae90b9ac3a4718ba0d to your computer and use it in GitHub Desktop.
Save ssiva13/16480feae02061ae90b9ac3a4718ba0d to your computer and use it in GitHub Desktop.

How to enable PHP LDAP extension?

Step 1

  • Find the loaded configuration file php.ini
  • Open php.ini file

Step 2

  • Windows

    • Apache Server

      • Search for extension=php_ldap.dll in php.ini file. Uncomment or add (if not present) this line and save the file.
    • IIS server

      • Search for ExtensionList in the php.ini file. Uncomment or add (if not present) the extension=php_ldap.dll line and save the file.
  • Linux

    • 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 the php.ini file. Uncomment or add (if not present) this line and save the file.

Step 3

  • Restart your server service. After that refresh the LDAP/AD plugin configuration page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment