LdapBundle icon indicating copy to clipboard operation
LdapBundle copied to clipboard

Exception "module php-ldap isn't install"

Open attardi opened this issue 12 years ago • 2 comments

I get this exception despite having done:

sudo apt-get install php5-ldap php composer.phar require "ext-ldap:*" php composer.phar require imag/ldap-bundle:dev-master

What else shall I do?

attardi avatar Nov 02 '13 08:11 attardi

Check

php -i | grep ldap 

to see if it exists in PHP CLI

marcoleong avatar Nov 15 '13 07:11 marcoleong

I found the only way to fix this is find this bundle file: \imag\ldap-bundle\IMAG\LdapBundle\IMAGLdapBundle.php

And comment out this: if (!function_exists('ldap_connect')) { throw new \Exception("module php-ldap isn't install"); }

I have LDAP installed and it works so its an incorrect error in my case. I think its because I use this on a windows dev box and in Azure.

hollowponds avatar Mar 12 '15 23:03 hollowponds