diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-08-19 17:28:49 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-08-25 07:39:37 +1000 |
commit | 559d92a8dfb0759326f154dbe14d05a3df0ce4d3 (patch) | |
tree | 44032e99d52df56f58b5c523505f7981d12435e4 /source4/dsdb/samdb | |
parent | 9f2a41eea8ad3e4e586152aeeb36fd6b287e7b24 (diff) | |
download | samba-559d92a8dfb0759326f154dbe14d05a3df0ce4d3.tar.gz samba-559d92a8dfb0759326f154dbe14d05a3df0ce4d3.tar.bz2 samba-559d92a8dfb0759326f154dbe14d05a3df0ce4d3.zip |
s4-dsdb: fixed all partitions search in cracknames
when searching all partitions we must use the NULL basedn, or we will
miss partitions in multi-domain setups
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r-- | source4/dsdb/samdb/cracknames.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/cracknames.c b/source4/dsdb/samdb/cracknames.c index 21a473da5c..a518b8938e 100644 --- a/source4/dsdb/samdb/cracknames.c +++ b/source4/dsdb/samdb/cracknames.c @@ -837,7 +837,7 @@ static WERROR DsCrackNameOneFilter(struct ldb_context *sam_ctx, TALLOC_CTX *mem_ search_dn = samdb_result_dn(sam_ctx, mem_ctx, domain_res->msgs[0], "ncName", NULL); } else { dsdb_flags = DSDB_SEARCH_SEARCH_ALL_PARTITIONS; - search_dn = ldb_get_root_basedn(sam_ctx); + search_dn = NULL; } if (format_desired == DRSUAPI_DS_NAME_FORMAT_GUID){ dsdb_flags = dsdb_flags| DSDB_SEARCH_SHOW_DELETED; |