diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2012-03-21 09:24:13 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-03-21 14:49:50 -0400 |
commit | da0da0419e96fef0e79469328b1dfe1c28913838 (patch) | |
tree | 4a6df0bf5d549c8b1d76b73bf5d5015c2a6c89c4 /src | |
parent | 964cb56ecb308de0b757cfc63ccdadf542bb2749 (diff) | |
download | sssd-da0da0419e96fef0e79469328b1dfe1c28913838.tar.gz sssd-da0da0419e96fef0e79469328b1dfe1c28913838.tar.bz2 sssd-da0da0419e96fef0e79469328b1dfe1c28913838.zip |
LDAP: Add better error logging when ldap_result() fails
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/ldap/sdap_async.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async.c b/src/providers/ldap/sdap_async.c index 306d7622..076a3f22 100644 --- a/src/providers/ldap/sdap_async.c +++ b/src/providers/ldap/sdap_async.c @@ -185,7 +185,9 @@ static void sdap_process_result(struct tevent_context *ev, void *pvt) } if (ret == -1) { - DEBUG(4, ("ldap_result gave -1, something bad happend!\n")); + ldap_get_option(sh->ldap, LDAP_OPT_RESULT_CODE, &ret); + DEBUG(SSSDBG_OP_FAILURE, + ("ldap_result error: [%s]\n", ldap_err2string(ret))); sdap_handle_release(sh); return; } |