From 114d4dbcd14f69ce4807612adc691aa5a049ccb2 Mon Sep 17 00:00:00 2001 From: Garming Sam Date: Mon, 18 Dec 2017 00:58:08 +0000 Subject: [PATCH] auth_sam: Allow domain '' when logging in Signed-off-by: Garming Sam --- source4/auth/ntlm/auth_sam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/auth/ntlm/auth_sam.c b/source4/auth/ntlm/auth_sam.c index 24fe167..67102a0 100644 --- a/source4/auth/ntlm/auth_sam.c +++ b/source4/auth/ntlm/auth_sam.c @@ -792,7 +792,7 @@ static NTSTATUS authsam_want_check(struct auth_method_context *ctx, p = strchr_m(user_info->mapped.account_name, '@'); if (p == NULL) { - if (effective_domain == NULL) { + if (effective_domain == NULL || strequal(effective_domain, "")) { return NT_STATUS_OK; } DEBUG(6,("authsam_check_password: '' without upn not handled (DC)\n")); -- 2.7.4