1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

r10148: Use samdb_base_dn() to find the local domain.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett 2005-09-10 22:13:50 +00:00 committed by Gerald (Jerry) Carter
parent a798d76a4a
commit 4969f86ac2

View File

@ -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;