diff options
author | Andre Heinecke <[email protected]> | 2016-06-14 17:20:31 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-06-14 18:40:42 +0000 |
commit | 5faddcb2927a997e05fb34eb270982096d1fe3a4 (patch) | |
tree | b9bd0affa6d79ba6c701f4680f8084037458556a /dirmngr/dirmngr_ldap.c | |
parent | gpgsm: Allow ciphers AES192 and SERPENT256 (diff) | |
download | gnupg-5faddcb2927a997e05fb34eb270982096d1fe3a4.tar.gz gnupg-5faddcb2927a997e05fb34eb270982096d1fe3a4.zip |
dirmngr: Print ldap error if bind fails
* dirmngr/dirmngr_ldap.c (fetch_ldap): Use ldap_err2string on bind
return.
--
ldap_simple_bind_s does not set errno.
Signed-off-by: Andre Heinecke <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | dirmngr/dirmngr_ldap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dirmngr/dirmngr_ldap.c b/dirmngr/dirmngr_ldap.c index 6309413ef..a31b14a6f 100644 --- a/dirmngr/dirmngr_ldap.c +++ b/dirmngr/dirmngr_ldap.c @@ -644,7 +644,7 @@ fetch_ldap (my_opt_t myopt, const char *url, const LDAPURLDesc *ludp) if (ret) { log_error (_("binding to '%s:%d' failed: %s\n"), - host, port, strerror (errno)); + host, port, ldap_err2string (ret)); ldap_unbind (ld); return -1; } |