Access the user and passwd fields from the connectdata struct now instead

of the sessionhandle struct, as that was not good.
This commit is contained in:
Daniel Stenberg
2003-07-19 23:56:33 +00:00
parent 2f0bc9d1f7
commit 52b631fade
8 changed files with 69 additions and 50 deletions

View File

@@ -178,8 +178,8 @@ CURLcode Curl_ldap(struct connectdata *conn)
status = CURLE_COULDNT_CONNECT;
} else {
rc = ldap_simple_bind_s(server,
conn->bits.user_passwd?data->state.user:NULL,
conn->bits.user_passwd?data->state.passwd:NULL);
conn->bits.user_passwd?conn->user:NULL,
conn->bits.user_passwd?conn->passwd:NULL);
if (rc != 0) {
failf(data, "LDAP: %s", ldap_err2string(rc));
status = CURLE_LDAP_CANNOT_BIND;