Fixed error: Open connection had a syntax error for binding as admin
git-svn-id: https://rosehill.googlecode.com/svn/trunk@72 100bd78a-fc82-11de-b5bc-ffd2847a4b57
This commit is contained in:
parent
aab9b5daf7
commit
da1102012a
|
@ -93,7 +93,7 @@ class Employee implements ExternalIdentity
|
||||||
if (!self::$connection) {
|
if (!self::$connection) {
|
||||||
if (self::$connection = ldap_connect(DIRECTORY_SERVER)) {
|
if (self::$connection = ldap_connect(DIRECTORY_SERVER)) {
|
||||||
ldap_set_option(self::$connection,LDAP_OPT_PROTOCOL_VERSION,3);
|
ldap_set_option(self::$connection,LDAP_OPT_PROTOCOL_VERSION,3);
|
||||||
if (defined(DIRECTORY_ADMIN_BINDING) && DIRECTORY_ADMIN_BINDING) {
|
if (defined('DIRECTORY_ADMIN_BINDING') && DIRECTORY_ADMIN_BINDING) {
|
||||||
if (!ldap_bind(self::$connection,DIRECTORY_ADMIN_BINDING,DIRECTORY_ADMIN_PASS)) {
|
if (!ldap_bind(self::$connection,DIRECTORY_ADMIN_BINDING,DIRECTORY_ADMIN_PASS)) {
|
||||||
throw new Exception(ldap_error(self::$connection));
|
throw new Exception(ldap_error(self::$connection));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue