auth4: Fix map_user_info_cracknames for domain==NULL
authorVolker Lendecke <vl@samba.org>
Sun, 26 Feb 2017 08:16:02 +0000 (09:16 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 28 Feb 2017 09:01:13 +0000 (10:01 +0100)
commit5a6f3fcf811e9199096d343c7d4c8c3af663157d
tree5dca7df8e0eba967d2d99f8234a54bbb3f4fb0f4
parent41827cc81241599354e3d176830818ec32315d6c
auth4: Fix map_user_info_cracknames for domain==NULL

DsCrackNameOneName directly fails for DRSUAPI_DS_NAME_FORMAT_NT4_ACCOUNT
if the name passed in does not contain a \. The only caller of
map_user_info_cracknames (auth_check_password_send) passes in
lpcfg_workgroup(), which does not contain a \. Add in the \ also for
the default_domain case.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/auth/ntlm/auth_util.c