Browse Source

Signed-off-by: Russ Whitehead <william.whitehead@lexisnexis.com>

Russ Whitehead 9 years ago
parent
commit
b3c1087535
1 changed files with 1 additions and 1 deletions
  1. 1 1
      system/security/LdapSecurity/ldaputils.cpp

+ 1 - 1
system/security/LdapSecurity/ldaputils.cpp

@@ -93,7 +93,7 @@ LDAP* LdapUtils::LdapInit(const char* protocol, const char* host, int port, int
         int rc = LDAP_INIT(&ld, uri.str());
         if(rc != LDAP_SUCCESS)
         {
-            throw MakeStringException(-1, "ldap_initialize(%s,%d) error %s", host, port, ldap_err2string(LdapGetLastError()));
+            throw MakeStringException(-1, "ldap_initialize(%s,%d) error %s", host, port, ldap_err2string(rc));
         }
 #endif
     }