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 +- source4/torture/rpc/samlogon.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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; diff --git a/source4/torture/rpc/samlogon.c b/source4/torture/rpc/samlogon.c index 9a9c3039d2..104583058a 100644 --- a/source4/torture/rpc/samlogon.c +++ b/source4/torture/rpc/samlogon.c @@ -1259,6 +1259,12 @@ BOOL torture_rpc_samlogon(void) cli_credentials_get_password(cmdline_credentials), True }, + { + cli_credentials_get_realm(cmdline_credentials), + cli_credentials_get_username(cmdline_credentials), + cli_credentials_get_password(cmdline_credentials), + True + }, { NULL, talloc_asprintf(mem_ctx, -- cgit