aboutsummaryrefslogtreecommitdiff
path: root/lib/ldap.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-11-07 09:39:49 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-11-07 09:39:49 +0000
commit2a0cde30419987394bcf15eea5eecbbf0f9c759f (patch)
tree8e89e28de8a033cd55f445f4522f8369b75332d2 /lib/ldap.c
parent3552775b52e5b6a8f22dfb86eb502cb88a7abbec (diff)
adjusted after Ramana Mokkapati's comments
Diffstat (limited to 'lib/ldap.c')
-rw-r--r--lib/ldap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ldap.c b/lib/ldap.c
index 37dd8a582..a4878cdd7 100644
--- a/lib/ldap.c
+++ b/lib/ldap.c
@@ -177,8 +177,8 @@ CURLcode Curl_ldap(struct connectdata *conn)
status = CURLE_COULDNT_CONNECT;
} else {
rc = ldap_simple_bind_s(server,
- data->state.user[0]?data->state.user:NULL,
- data->state.passwd[0]?data->state.passwd:NULL);
+ conn->bits.user_passwd?data->state.user:NULL,
+ conn->bits.user_passwd?data->state.passwd:NULL);
if (rc != 0) {
failf(data, "LDAP: %s", ldap_err2string(rc));
status = CURLE_LDAP_CANNOT_BIND;