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:
inghamn 2012-01-24 19:09:02 +00:00
parent aab9b5daf7
commit da1102012a
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class Employee implements ExternalIdentity
if (!self::$connection) {
if (self::$connection = ldap_connect(DIRECTORY_SERVER)) {
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)) {
throw new Exception(ldap_error(self::$connection));
}