1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

idmap_adex: Add more debugging to the basic search function.

Log the dn of all located entries in order to verify search results.
This commit is contained in:
Gerald (Jerry) Carter 2008-10-06 11:47:57 -05:00
parent 338f658a5a
commit 2a35985283

View File

@ -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;
}