[SSSD] [PATCH] LDAP: Add better error logging when ldap_result() fails

Stephen Gallagher sgallagh at redhat.com
Wed Mar 21 18:04:12 UTC 2012


This should help us diagnose issues with ldap_result() returning -1.

The only catch is that it relies on the openldap libraries setting the
error code properly, which they do not always do.*


* As part of my tests, I reverted the openldap libraries to the 2.4.29
release that was broken with SSSD, causing ldap_result to return -1 all
the time. The LDAP_OPT_RESULT_CODE in that case was LDAP_SUCCESS.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-LDAP-Add-better-error-logging-when-ldap_result-fails.patch
Type: text/x-patch
Size: 1036 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20120321/254666a9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20120321/254666a9/attachment.sig>


More information about the sssd-devel mailing list