summaryrefslogtreecommitdiff
path: root/source3/winbindd/idmap_adex
diff options
context:
space:
mode:
authorGerald (Jerry) Carter <jerry@samba.org>2008-10-06 11:47:57 -0500
committerGerald (Jerry) Carter <jerry@samba.org>2008-10-06 14:10:03 -0500
commit2a35985283be45adbba63b5d7ced8499bcb64f59 (patch)
tree327337e1d88d12f39839e19de756a3ac4a60ada4 /source3/winbindd/idmap_adex
parent338f658a5a300e21cc69b1a84ebbdc7d63262448 (diff)
downloadsamba-2a35985283be45adbba63b5d7ced8499bcb64f59.tar.gz
samba-2a35985283be45adbba63b5d7ced8499bcb64f59.tar.bz2
samba-2a35985283be45adbba63b5d7ced8499bcb64f59.zip
idmap_adex: Add more debugging to the basic search function.
Log the dn of all located entries in order to verify search results.
Diffstat (limited to 'source3/winbindd/idmap_adex')
-rw-r--r--source3/winbindd/idmap_adex/likewise_cell.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/source3/winbindd/idmap_adex/likewise_cell.c b/source3/winbindd/idmap_adex/likewise_cell.c
index 77eeee406b..7723b3e015 100644
--- a/source3/winbindd/idmap_adex/likewise_cell.c
+++ b/source3/winbindd/idmap_adex/likewise_cell.c
@@ -389,6 +389,24 @@ done:
status = ads_do_search(c->conn, search_base,
scope, expr, attrs, msg);
if (ADS_ERR_OK(status)) {
+ if (DEBUGLEVEL >= 10) {
+ LDAPMessage *e = NULL;
+
+ int n = ads_count_replies(c->conn, *msg);
+
+ DEBUG(10,("cell_do_search: Located %d entries\n", n));
+
+ for (e=ads_first_entry(c->conn, *msg);
+ e!=NULL;
+ e = ads_next_entry(c->conn, e))
+ {
+ char *dn = ads_get_dn(c->conn, e);
+
+ DEBUGADD(10,(" dn: %s\n", dn ? dn : "<NULL>"));
+ SAFE_FREE(dn);
+ }
+ }
+
return status;
}