Hi @varuntit101m,
Thanks for using Bitnami. You don't need to install any additional library on your system to use LDAP with PHP. The extension is already installed at /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.10
. You can check that PHP was compiled with LDAP support using the next command
php -i | grep Configure -C4
I launched a fresh new LAMP 7.4.12 instance and this is the output I'm getting
$ php -i | grep Configure -C4
PHP Version => 7.4.12
System => Linux ip-172-31-23-170 4.19.0-12-cloud-amd64 #1 SMP Debian 4.19.152-1 (2020-10-18) x86_64
Build Date => Nov 25 2020 15:34:43
Configure Command => '/bitnami/blacksmith-sandox/php-7.4.12/configure' '--prefix=/opt/bitnami/php' '--with-imap=/bitnami/blacksmith-sandox/imap-2007.0.0' '--with-imap-ssl' '--with-zlib-dir' '--with-zlib' '--with-libxml-dir=/usr' '--enable-soap' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--enable-sockets' '--enable-pcntl' '--enable-exif' '--enable-bcmath' '--with-pdo-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-png-dir=/usr' '--with-openssl' '--with-libdir=/lib/x86_64-linux-gnu' '--enable-ftp' '--enable-calendar' '--with-gettext' '--with-xmlrpc' '--with-xsl' '--enable-fpm' '--with-fpm-user=daemon' '--with-fpm-group=daemon' '--enable-mbstring' '--enable-cgi' '--enable-ctype' '--enable-session' '--enable-mysqlnd' '--enable-intl' '--with-iconv' '--with-pdo_sqlite' '--with-sqlite3' '--with-readline' '--with-gmp' '--with-curl' '--with-pdo-pgsql=shared' '--with-pgsql=shared' '--with-config-file-scan-dir=/opt/bitnami/php/etc/conf.d' '--enable-gd' '--with-pear' '--with-freetype' '--with-jpeg' '--with-zip' '--with-pdo-dblib=shared' '--with-tidy' '--with-ldap=/usr/' '--enable-apcu=shared'
As you can see, there is an LDAP reference at the end of the configure command
--with-ldap=/usr/
You can also check it is enabled by default using the next command
php -i | grep -i ldap -C1
The result for me is
$ php -i | grep -i ldap -C1
ldap
LDAP Support => enabled
Can you check it on your side? You will need to remove the ldap.so
library you moved to your server