mirror of https://github.com/moparisthebest/curl
adjusted after Ramana Mokkapati's comments
This commit is contained in:
parent
3552775b52
commit
2a0cde3041
|
@ -177,8 +177,8 @@ CURLcode Curl_ldap(struct connectdata *conn)
|
||||||
status = CURLE_COULDNT_CONNECT;
|
status = CURLE_COULDNT_CONNECT;
|
||||||
} else {
|
} else {
|
||||||
rc = ldap_simple_bind_s(server,
|
rc = ldap_simple_bind_s(server,
|
||||||
data->state.user[0]?data->state.user:NULL,
|
conn->bits.user_passwd?data->state.user:NULL,
|
||||||
data->state.passwd[0]?data->state.passwd:NULL);
|
conn->bits.user_passwd?data->state.passwd:NULL);
|
||||||
if (rc != 0) {
|
if (rc != 0) {
|
||||||
failf(data, "LDAP: %s", ldap_err2string(rc));
|
failf(data, "LDAP: %s", ldap_err2string(rc));
|
||||||
status = CURLE_LDAP_CANNOT_BIND;
|
status = CURLE_LDAP_CANNOT_BIND;
|
||||||
|
|
Loading…
Reference in New Issue