git.samba.org
/
asn
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
709cacd
)
s3-libads: Print the debug string of a failed call with LDAP_OTHER.
s3-fixes
author
Andreas Schneider
<asn@samba.org>
Wed, 24 Apr 2013 13:01:24 +0000
(15:01 +0200)
committer
Andreas Schneider
<asn@samba.org>
Wed, 12 Jun 2013 07:49:43 +0000
(09:49 +0200)
source3/libads/ldap.c
patch
|
blob
|
history
diff --git
a/source3/libads/ldap.c
b/source3/libads/ldap.c
index 2a4a83b34ae9ea9aff53e8e85debb6ee88967090..c8ef5b5774d72a4fefadbaaf1c449a54c851c2f9 100644
(file)
--- a/
source3/libads/ldap.c
+++ b/
source3/libads/ldap.c
@@
-1041,6
+1041,24
@@
static ADS_STATUS ads_do_paged_search_args(ADS_STRUCT *ads,
if (rc) {
DEBUG(3,("ads_do_paged_search_args: ldap_search_with_timeout(%s) -> %s\n", expr,
ldap_err2string(rc)));
+ if (rc == LDAP_OTHER) {
+ char *ldap_errmsg;
+ int ret;
+
+ ret = ldap_parse_result(ads->ldap.ld,
+ *res,
+ NULL,
+ NULL,
+ &ldap_errmsg,
+ NULL,
+ NULL,
+ 0);
+ if (ret == LDAP_SUCCESS) {
+ DEBUG(3, ("ldap_search_with_timeout(%s) "
+ "error: %s\n", expr, ldap_errmsg));
+ ldap_memfree(ldap_errmsg);
+ }
+ }
goto done;
}