diff options
author | Stefan Metzmacher <metze@samba.org> | 2017-04-06 15:34:01 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-04-10 01:11:19 +0200 |
commit | 5da664dbed4932ef21061ad6127b5c9047398321 (patch) | |
tree | f69d363bf758fac688d4e71d7971d7281ba232a9 /source4/auth | |
parent | 66ee788a5a7e882f84fe44e1c933b2df1033b1a9 (diff) | |
download | samba-5da664dbed4932ef21061ad6127b5c9047398321.tar.gz |
auth4: use lpcfg_is_my_domain_or_realm() in authsam_want_check()
We also accept the domain to be the realm string.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=2976
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12709
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/auth')
-rw-r--r-- | source4/auth/ntlm/auth_sam.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/auth/ntlm/auth_sam.c b/source4/auth/ntlm/auth_sam.c index 391492a898f..f22aa3074bb 100644 --- a/source4/auth/ntlm/auth_sam.c +++ b/source4/auth/ntlm/auth_sam.c @@ -660,8 +660,8 @@ static NTSTATUS authsam_want_check(struct auth_method_context *ctx, is_local_name = lpcfg_is_myname(ctx->auth_ctx->lp_ctx, user_info->mapped.domain_name); - is_my_domain = lpcfg_is_mydomain(ctx->auth_ctx->lp_ctx, - user_info->mapped.domain_name); + is_my_domain = lpcfg_is_my_domain_or_realm(ctx->auth_ctx->lp_ctx, + user_info->mapped.domain_name); /* check whether or not we service this domain/workgroup name */ switch (lpcfg_server_role(ctx->auth_ctx->lp_ctx)) { |