From ae0cf9c240b7026fdcd94bbcfaeefdf66fc1bfbc Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 15 May 2005 03:24:48 +0000 Subject: r6793: Move auth_sam to use the dnsDomain rather than the soon-to-be-depricated 'realm'. Add torture test for this behaviour. Andrew Bartlet (This used to be commit 6b9020661a13fd5ec6c5d1e21344d9f654978987) --- source4/auth/auth_sam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/auth') diff --git a/source4/auth/auth_sam.c b/source4/auth/auth_sam.c index 1e6c865361..947de1ef8c 100644 --- a/source4/auth/auth_sam.c +++ b/source4/auth/auth_sam.c @@ -215,7 +215,7 @@ static NTSTATUS authsam_search_account(TALLOC_CTX *mem_ctx, void *sam_ctx, if (domain_name) { /* find the domain's DN */ ret_domain = gendb_search(sam_ctx, mem_ctx, NULL, &msgs_domain, domain_attrs, - "(&(|(realm=%s)(flatname=%s))(objectclass=domain))", + "(|(&(dnsDomain=%s)(objectClass=domainDNS))(&(flatname=%s)(objectclass=domain)))", domain_name, domain_name); if (ret_domain == -1) { return NT_STATUS_INTERNAL_DB_CORRUPTION; -- cgit