summaryrefslogtreecommitdiffstats
path: root/source/auth/auth_sam.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-09-12 06:39:50 +0000
committerTim Potter <tpot@samba.org>2001-09-12 06:39:50 +0000
commitd34fd8ec0716127c7a68eeb8e77d1ae8cc07b547 (patch)
tree45ddaa7bc0a3eaa2ed264ce91415e5c79fb5f125 /source/auth/auth_sam.c
parentb8651acb9c0d7248a6a2e82c33b1e43633fd83fd (diff)
downloadsamba-d34fd8ec0716127c7a68eeb8e77d1ae8cc07b547.tar.gz
samba-d34fd8ec0716127c7a68eeb8e77d1ae8cc07b547.tar.xz
samba-d34fd8ec0716127c7a68eeb8e77d1ae8cc07b547.zip
Some patches to authentication:
- the usersupplied_info now contains a smb_username (as it comes across on the wire) and a unix_username (after being passed through mapping functions) - when doing security={server,domain} use the smb_username, otherwise use the unix_username
Diffstat (limited to 'source/auth/auth_sam.c')
-rw-r--r--source/auth/auth_sam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/auth/auth_sam.c b/source/auth/auth_sam.c
index 33b06236432..111a35e0687 100644
--- a/source/auth/auth_sam.c
+++ b/source/auth/auth_sam.c
@@ -152,7 +152,7 @@ NTSTATUS smb_password_ok(SAM_ACCOUNT *sampass, const auth_usersupplied_info *use
if (smb_pwd_check_ntlmv2( user_info->nt_resp.buffer,
user_info->nt_resp.len,
nt_pw,
- user_info->chal, user_info->requested_username.str,
+ user_info->chal, user_info->smb_username.str,
user_info->requested_domain.str,
(char *)server_info->session_key))
{