summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-08-19 17:31:13 +1000
committerAndrew Tridgell <tridge@samba.org>2011-08-25 07:39:37 +1000
commit8510e405f58313f190d8e3dfc3308e4a49530f9b (patch)
treed17d3017a20d010d93a65dbe6703b7a11e44604f
parent68ff9ecd010c938da0a7d347a00cfef80a9999a0 (diff)
downloadsamba-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>
-rw-r--r--source4/kdc/db-glue.c4
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))");