smbd: in ntlm auth, do not map empty domain in case of \user@realm
authorUri Simchoni <uri@samba.org>
Sat, 22 Oct 2016 19:47:08 +0000 (22:47 +0300)
committerJeremy Allison <jra@samba.org>
Mon, 24 Oct 2016 23:46:23 +0000 (01:46 +0200)
commit3f82db56cbf2727abd465e28ac02ad2242b47c29
tree4f1d55ee60de8fbf0ce64f2373fe5cde47289043
parent8e88b56ebc314a5e3a722d63ca23b4a49b7ac2dc
smbd: in ntlm auth, do not map empty domain in case of \user@realm

When mapping user and domain during NTLM authentication, an empty domain
is mapped to the local SAM db. However, an empty domain may legitimately
be used if the user field has both user and domain in upn@realm format.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12375

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
selftest/knownfail
source3/auth/auth_util.c