From 00d69bdf238eeeb38ad7781b5841820796c07d6a Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 10 Sep 2005 22:13:50 +0000 Subject: r10148: Use samdb_base_dn() to find the local domain. Andrew Bartlett (This used to be commit 4969f86ac29aa1c4371a5cd01551f45c7fdb4cb2) --- source4/ntvfs/common/sidmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/ntvfs/common') diff --git a/source4/ntvfs/common/sidmap.c b/source4/ntvfs/common/sidmap.c index b29f197b34..95d2b756d9 100644 --- a/source4/ntvfs/common/sidmap.c +++ b/source4/ntvfs/common/sidmap.c @@ -100,8 +100,8 @@ static NTSTATUS sidmap_primary_domain_sid(struct sidmap_context *sidmap, int ret; struct ldb_message **res = NULL; - ret = gendb_search(sidmap->samctx, mem_ctx, NULL, &res, attrs, - "(&(objectClass=domain)(name=%s))", lp_workgroup()); + ret = gendb_search_dn(sidmap->samctx, mem_ctx, samdb_base_dn(mem_ctx), + &res, attrs); if (ret != 1) { talloc_free(res); return NT_STATUS_NO_SUCH_DOMAIN; -- cgit