Ldap.so support urgent

Keywords: LAMP/MAMP/WAMP - Installers - How to - Services (Apache, MariaDB, MySQL…)

Description:
hello dear sirs of bitnami community,
i have problem with enabling ldap extention. I uncomment the extension ldap.so but i am receiving an error that the ldap.so is not exist. why ? i have installed the bitnami 7.4.29 version … can you help me ? i need the ldap auth to use ldap_connect function.

Thank you in advance.
Chris.

The ldap.so Apache extension is included inside the installdir/apache2/modules/ folder. Please ensure it exists and enable the extension in the httpd.conf file.

Hello ,
I am using the 7.3.33 version of PHP (bitnami package).
There are mod_ldap.so and mod_authz_ldap.so inside the modules folder. I have uncommented the lines inside the httpd.conf file.
When i searched for php module with php -m | grep ldap, i received this error message :

PHP Warning: PHP Startup: Unable to load dynamic library ‘ldap.so’ (tried: /usr/lib/php/20180731/ldap.so (/usr/lib/php/20180731/ldap.so: undefined symbol: zend_try_assign_typed_ref_arr), /usr/lib/php/20180731/ldap.so.so (/usr/lib/php/20180731/ldap.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

In my code, I have the ldap_connect function which is not working. any ideas ?

sincerely ,
Christos

This is to enable those extensions in Apache, not in PHP.

I do not know if that version of the Bitnami LAMP solution included LDAP support. You can enable the ldap extension in the installdir/php/etc/php.ini file and check if it works by using the php -m command.

I have enabled apache modules and Php in php.ini but i get the same error. How do I know which version of bitnami lamp supports ldap ? i need to make a connection with LDAP server for auth. Can I install ldap module as an addon in some way?

Hi @cbabekos.engineer ,

The ldap extension file must be included inside the PHP’s extensions folder.

I understand you are not loading the Bitnami console when running the commands, right?

https://docs.bitnami.com/installer/how-to/understand-bnconsole/

I didn’t know anything about this console. However, I ran the ./use_lampstack but nothing. do i have to add some arguments ? or other command ?

Hi @cbabekos.engineer,

The ./use_lampstack command will load the stack’s environment, and from there you can run all other commands:

./use_lampstack
 php -m | grep ldap

Regards,
Michiel