summaryrefslogtreecommitdiff
path: root/source4/auth/ntlm/auth.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-09-29 17:44:28 +1000
committerAndrew Tridgell <tridge@samba.org>2011-10-04 15:08:57 +1100
commit71f3a25ff7ff5866c77f580daa4814ca985167ce (patch)
tree3f60f275e30bdb96008ca8a302ec9b13e0cc549c /source4/auth/ntlm/auth.c
parent0c944d07dc534694729a1ae85d3f28206c6c0c40 (diff)
downloadsamba-71f3a25ff7ff5866c77f580daa4814ca985167ce.tar.gz
samba-71f3a25ff7ff5866c77f580daa4814ca985167ce.tar.bz2
samba-71f3a25ff7ff5866c77f580daa4814ca985167ce.zip
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>
Diffstat (limited to 'source4/auth/ntlm/auth.c')
-rw-r--r--source4/auth/ntlm/auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/auth/ntlm/auth.c b/source4/auth/ntlm/auth.c
index 74e97cfd7d..69cbff6e9a 100644
--- a/source4/auth/ntlm/auth.c
+++ b/source4/auth/ntlm/auth.c
@@ -251,7 +251,7 @@ _PUBLIC_ struct tevent_req *auth_check_password_send(TALLOC_CTX *mem_ctx,
state->user_info = user_info;
if (!user_info->mapped_state) {
- nt_status = map_user_info(req, lpcfg_workgroup(auth_ctx->lp_ctx),
+ nt_status = map_user_info(auth_ctx->sam_ctx, req, lpcfg_workgroup(auth_ctx->lp_ctx),
user_info, &user_info_tmp);
if (tevent_req_nterror(req, nt_status)) {
return tevent_req_post(req, ev);