Loading lib/ldap.c +5 −1 Original line number Diff line number Diff line Loading @@ -95,9 +95,11 @@ static void DynaClose(void) #if defined(HAVE_DLOPEN) || defined(HAVE_LIBDL) if (libldap) { dlclose(libldap); libldap=NULL; } if (liblber) { dlclose(liblber); liblber=NULL; } #endif } Loading Loading @@ -174,7 +176,9 @@ CURLcode Curl_ldap(struct connectdata *conn) conn->hostname, conn->port); status = CURLE_COULDNT_CONNECT; } else { rc = ldap_simple_bind_s(server, data->state.user, data->state.passwd); rc = ldap_simple_bind_s(server, data->state.user[0]?data->state.user:NULL, data->state.passwd[0]?data->state.passwd:NULL); if (rc != 0) { failf(data, "LDAP: %s", ldap_err2string(rc)); status = CURLE_LDAP_CANNOT_BIND; Loading Loading
lib/ldap.c +5 −1 Original line number Diff line number Diff line Loading @@ -95,9 +95,11 @@ static void DynaClose(void) #if defined(HAVE_DLOPEN) || defined(HAVE_LIBDL) if (libldap) { dlclose(libldap); libldap=NULL; } if (liblber) { dlclose(liblber); liblber=NULL; } #endif } Loading Loading @@ -174,7 +176,9 @@ CURLcode Curl_ldap(struct connectdata *conn) conn->hostname, conn->port); status = CURLE_COULDNT_CONNECT; } else { rc = ldap_simple_bind_s(server, data->state.user, data->state.passwd); rc = ldap_simple_bind_s(server, data->state.user[0]?data->state.user:NULL, data->state.passwd[0]?data->state.passwd:NULL); if (rc != 0) { failf(data, "LDAP: %s", ldap_err2string(rc)); status = CURLE_LDAP_CANNOT_BIND; Loading