projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3552775
)
adjusted after Ramana Mokkapati's comments
author
Daniel Stenberg
<daniel@haxx.se>
Wed, 7 Nov 2001 09:39:49 +0000
(09:39 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Wed, 7 Nov 2001 09:39:49 +0000
(09:39 +0000)
lib/ldap.c
patch
|
blob
|
history
diff --git
a/lib/ldap.c
b/lib/ldap.c
index
37dd8a5
..
a4878cd
100644
(file)
--- 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;