auth4: improve authsam_want_check for upn authentication
authorStefan Metzmacher <metze@samba.org>
Fri, 17 Mar 2017 15:31:02 +0000 (16:31 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 9 Apr 2017 23:11:20 +0000 (01:11 +0200)
commit8193b708984671df8439c516fd2f209d7760f5c2
tree91803015d55eeb4b236f591e73675f75b88e800e
parent09e24ce40f89ac2f03d0c5fefa8b59f0d113fa6b
auth4: improve authsam_want_check for upn authentication

We need to check if the upn suffix is within our forest.
The check if it's within our domain is done in
authsam_check_password_internals() after calling
crack_name_to_nt4_name().

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>
source4/auth/ntlm/auth_sam.c