Sfoglia il codice sorgente

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

Russ Whitehead 9 anni fa
parent
commit
efecfb015e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 error %s", ldap_err2string(rc));
+            throw MakeStringException(-1, "ldap_initialize(%s,%d) error %s", host, port, ldap_err2string(LdapGetLastError()));
         }
 #endif
     }