s4-auth: rework map_user_info() to use cracknames
authorAndrew Tridgell <tridge@samba.org>
Thu, 29 Sep 2011 07:44:28 +0000 (17:44 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 4 Oct 2011 04:08:57 +0000 (15:08 +1100)
commit71f3a25ff7ff5866c77f580daa4814ca985167ce
tree3f60f275e30bdb96008ca8a302ec9b13e0cc549c
parent0c944d07dc534694729a1ae85d3f28206c6c0c40
s4-auth: rework map_user_info() to use cracknames

to properly support multi-domain forests we need to determine if an
incoming username is part of a known forest domain or not. To do this
for all possible SPN forms, we need to use CrackNames.

This changes map_user_info() to use CrackNames if a SAM context is
available, and asks the CrackNames services to parse the incoming
username and domain into a NT4 form, which can then be used in the
SAM.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
source4/auth/ntlm/auth.c
source4/auth/ntlm/auth_util.c