diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2012-01-11 11:14:14 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-01-14 11:53:29 -0500 |
commit | 23d17a0389386c09b72dba31bac5f586c904f113 (patch) | |
tree | 54d51d2ac50597a431e05e152345338093ec6a83 /src | |
parent | 866ca0b4fb3e3e2f4631c769c56652d3176ca648 (diff) | |
download | sssd-23d17a0389386c09b72dba31bac5f586c904f113.tar.gz sssd-23d17a0389386c09b72dba31bac5f586c904f113.tar.bz2 sssd-23d17a0389386c09b72dba31bac5f586c904f113.zip |
Log fixes for sdap_call_conn_cb
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/ldap/sdap_fd_events.c | 3 | ||||
-rw-r--r-- | src/util/sss_ldap.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap_fd_events.c b/src/providers/ldap/sdap_fd_events.c index 3750da77..19001947 100644 --- a/src/providers/ldap/sdap_fd_events.c +++ b/src/providers/ldap/sdap_fd_events.c @@ -301,7 +301,8 @@ errno_t sdap_call_conn_cb(const char *uri,int fd, struct sdap_handle *sh) ret = ldap_url_parse(uri, &lud); if (ret != 0) { ber_sockbuf_free(sb); - DEBUG(1, ("ber_sockbuf_ctrl failed.\n")); + DEBUG(1, ("ldap_url_parse failed to validate [%s] on fd [%ld].\n", + uri, fd)); return EFAULT; } diff --git a/src/util/sss_ldap.c b/src/util/sss_ldap.c index dbccc94a..a90d740a 100644 --- a/src/util/sss_ldap.c +++ b/src/util/sss_ldap.c @@ -425,7 +425,8 @@ static void sss_ldap_init_sys_connect_done(struct tevent_req *subreq) lret = ldap_init_fd(state->sd, LDAP_PROTO_TCP, state->uri, &state->ldap); if (lret != LDAP_SUCCESS) { - DEBUG(1, ("ldap_init_fd failed: %s\n", sss_ldap_err2string(lret))); + DEBUG(1, ("ldap_init_fd failed: %s. [%ld][%s]\n", + sss_ldap_err2string(lret), state->sd, state->uri)); close(state->sd); if (lret == LDAP_SERVER_DOWN) { tevent_req_error(req, ETIMEDOUT); |