mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +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:
parent
338f658a5a
commit
2a35985283
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user