mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
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 commit is contained in:
parent
9153d73061
commit
6b9020661a
@ -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;
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user