diff options
author | Viktor Szakats <commit@vszakats.net> | 2018-10-09 15:05:35 +0000 |
---|---|---|
committer | Viktor Szakats <commit@vszakats.net> | 2018-10-09 15:05:35 +0000 |
commit | e13f0237774964abeb690c25b6d52ee5db77935c (patch) | |
tree | ea8b4429a84b192cb85435fc99c2d5446222f55b /lib/ldap.c | |
parent | 7da100010a4b0331d017aa4b381b93551a776f4d (diff) | |
download | curl-e13f0237774964abeb690c25b6d52ee5db77935c.tar.gz |
ldap: show precise LDAP call in error message on Windows
Also add a unique but common text ('bind via') to make it
easy to grep this specific failure regardless of platform.
Ref: https://github.com/curl/curl/pull/878/files#diff-7a636f08047c4edb53a240f540b4ecf6R468
Closes https://github.com/curl/curl/pull/3118
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
Reviewed-by: Marcel Raad <Marcel.Raad@teamviewer.com>
Diffstat (limited to 'lib/ldap.c')
-rw-r--r-- | lib/ldap.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/ldap.c b/lib/ldap.c index e42d1fbbc..ceaa71d08 100644 --- a/lib/ldap.c +++ b/lib/ldap.c @@ -474,7 +474,13 @@ static CURLcode Curl_ldap(struct connectdata *conn, bool *done) #endif } if(rc != 0) { - failf(data, "LDAP local: ldap_simple_bind_s %s", ldap_err2string(rc)); +#ifdef USE_WIN32_LDAP + failf(data, "LDAP local: bind via ldap_win_bind %s", + ldap_err2string(rc)); +#else + failf(data, "LDAP local: bind via ldap_simple_bind_s %s", + ldap_err2string(rc)); +#endif result = CURLE_LDAP_CANNOT_BIND; goto quit; } |