Fatal error: Call to undefined function: ldap_conn

If you are a Windows Users: 
This is a common error when you use XAMPP since LDAP is not enabled by default.
You can follow this steps to make sure LDAP works in your XAMPP

  • [Your Drive]:\xampp\php\php.ini In this file uncomment the foll. line: extension=php_ldap.dll
  • Move the file: libsasl.dll, from [Your Drive]:\xampp\php to [Your Drive]:\xampp\apache\bin
  • Restart Apache.
  • You can now use functions of the LDAP Module!

(ubuntu):

有人说安装这个就好,我自己用到反正是不行,查的说ldap会用到lasso,所以还得安装下php5-lasso的命令。

sudo apt-get install php5-ldap;

sudo apt-get install php5-lasso;

你可能感兴趣的:(Fatal error: Call to undefined function: ldap_conn)