LdapBundle
LdapBundle copied to clipboard
Exception "module php-ldap isn't install"
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?
Check
php -i | grep ldap
to see if it exists in PHP CLI
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.