浏览代码

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

Russ Whitehead 9 年之前
父节点
当前提交
b3c1087535
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
     }