diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-09-10 22:13:50 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:38:03 -0500 |
commit | 00d69bdf238eeeb38ad7781b5841820796c07d6a (patch) | |
tree | 12d2320daa6fa4590e118513839637d04de0f9d3 /source4/ntvfs | |
parent | d3b2db590a777188fb39dab2d44adf2517193c8b (diff) | |
download | samba-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.c | 4 |
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; |