diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-08-19 17:31:13 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-08-25 07:39:37 +1000 |
commit | 8510e405f58313f190d8e3dfc3308e4a49530f9b (patch) | |
tree | d17d3017a20d010d93a65dbe6703b7a11e44604f /source4 | |
parent | 68ff9ecd010c938da0a7d347a00cfef80a9999a0 (diff) | |
download | samba-8510e405f58313f190d8e3dfc3308e4a49530f9b.tar.gz samba-8510e405f58313f190d8e3dfc3308e4a49530f9b.tar.bz2 samba-8510e405f58313f190d8e3dfc3308e4a49530f9b.zip |
s4-kdc: fixed subtree search in KDC
use ldb_get_default_basedn() with a subtree search
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/kdc/db-glue.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/kdc/db-glue.c b/source4/kdc/db-glue.c index 0bdad7b21a..cdc318a4a8 100644 --- a/source4/kdc/db-glue.c +++ b/source4/kdc/db-glue.c @@ -1883,7 +1883,9 @@ NTSTATUS samba_kdc_setup_db_ctx(TALLOC_CTX *mem_ctx, struct samba_kdc_base_conte } else { kdc_db_ctx->my_krbtgt_number = 0; ldb_ret = dsdb_search_one(kdc_db_ctx->samdb, kdc_db_ctx, - &msg, NULL, LDB_SCOPE_SUBTREE, + &msg, + ldb_get_default_basedn(kdc_db_ctx->samdb), + LDB_SCOPE_SUBTREE, krbtgt_attrs, 0, "(&(objectClass=user)(samAccountName=krbtgt))"); |