summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-09-10 22:13:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:03 -0500
commit00d69bdf238eeeb38ad7781b5841820796c07d6a (patch)
tree12d2320daa6fa4590e118513839637d04de0f9d3 /source4/ntvfs
parentd3b2db590a777188fb39dab2d44adf2517193c8b (diff)
downloadsamba-00d69bdf238eeeb38ad7781b5841820796c07d6a.tar.gz
samba-00d69bdf238eeeb38ad7781b5841820796c07d6a.tar.bz2
samba-00d69bdf238eeeb38ad7781b5841820796c07d6a.zip
r10148: Use samdb_base_dn() to find the local domain.
Andrew Bartlett (This used to be commit 4969f86ac29aa1c4371a5cd01551f45c7fdb4cb2)
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/common/sidmap.c4
1 files changed, 2 insertions, 2 deletions
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;