mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
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 <aheinecke@intevation.de>
This commit is contained in:
parent
5f9bd7a9e1
commit
5faddcb292
@ -644,7 +644,7 @@ fetch_ldap (my_opt_t myopt, const char *url, const LDAPURLDesc *ludp)
|
|||||||
if (ret)
|
if (ret)
|
||||||
{
|
{
|
||||||
log_error (_("binding to '%s:%d' failed: %s\n"),
|
log_error (_("binding to '%s:%d' failed: %s\n"),
|
||||||
host, port, strerror (errno));
|
host, port, ldap_err2string (ret));
|
||||||
ldap_unbind (ld);
|
ldap_unbind (ld);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user