From 52b631fadecb5ff5f038badfd79055e7d4272927 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 19 Jul 2003 23:56:33 +0000 Subject: Access the user and passwd fields from the connectdata struct now instead of the sessionhandle struct, as that was not good. --- lib/ldap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/ldap.c') diff --git a/lib/ldap.c b/lib/ldap.c index 011996734..2228d5bc7 100644 --- a/lib/ldap.c +++ b/lib/ldap.c @@ -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; -- cgit v1.2.1