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:
Andre Heinecke 2016-06-14 19:20:31 +02:00 committed by Werner Koch
parent 5f9bd7a9e1
commit 5faddcb292
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}