summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-09-19 23:53:51 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-09-19 23:53:51 +0000
commit158a5b8399d8c0c5877f58719cf16b4f1e59eb55 (patch)
tree6164c3b0abf43808a673b600510d394af91d27cd /source3/smbd
parent14811e7d0ae82b3b8af18838b5be6a61001f8624 (diff)
downloadsamba-158a5b8399d8c0c5877f58719cf16b4f1e59eb55.tar.gz
samba-158a5b8399d8c0c5877f58719cf16b4f1e59eb55.tar.bz2
samba-158a5b8399d8c0c5877f58719cf16b4f1e59eb55.zip
- Fix up to use sampass->username insted of user_info->smb_username
- Fix initial lookup to use the mapped username. (This used to be commit 162b88e2313dbcf0b95300b8f18a3e9b6b6b29bd)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/auth_smbpasswd.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source3/smbd/auth_smbpasswd.c b/source3/smbd/auth_smbpasswd.c
index fb77a7a5c6..2427b2d16e 100644
--- a/source3/smbd/auth_smbpasswd.c
+++ b/source3/smbd/auth_smbpasswd.c
@@ -118,7 +118,7 @@ NTSTATUS smb_password_ok(SAM_ACCOUNT *sampass, const auth_usersupplied_info *use
/* Quit if the account was disabled. */
if(acct_ctrl & ACB_DISABLED) {
- DEBUG(1,("Account for user '%s' was disabled.\n", user_info->smb_username.str));
+ DEBUG(1,("Account for user '%s' was disabled.\n", sampass->username));
return(NT_STATUS_ACCOUNT_DISABLED);
}
@@ -165,12 +165,12 @@ NTSTATUS smb_password_ok(SAM_ACCOUNT *sampass, const auth_usersupplied_info *use
{
if (lp_null_passwords())
{
- DEBUG(3,("Account for user '%s' has no password and null passwords are allowed.\n", user_info->smb_username.str));
+ DEBUG(3,("Account for user '%s' has no password and null passwords are allowed.\n", sampass->username));
return(NT_STATUS_OK);
}
else
{
- DEBUG(3,("Account for user '%s' has no password and null passwords are NOT allowed.\n", user_info->smb_username.str));
+ DEBUG(3,("Account for user '%s' has no password and null passwords are NOT allowed.\n", sampass->username));
return(NT_STATUS_LOGON_FAILURE);
}
}
@@ -178,7 +178,7 @@ NTSTATUS smb_password_ok(SAM_ACCOUNT *sampass, const auth_usersupplied_info *use
if (!user_info || !sampass)
return(NT_STATUS_LOGON_FAILURE);
- DEBUG(4,("smb_password_ok: Checking SMB password for user %s\n",user_info->smb_username.str));
+ DEBUG(4,("smb_password_ok: Checking SMB password for user %s\n",sampass->username));
nt_pw = pdb_get_nt_passwd(sampass);
@@ -191,7 +191,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->smb_username.str,
+ user_info->chal, sampass->username,
user_info->requested_domain.str,
(char *)server_info->session_key))
{
@@ -252,12 +252,12 @@ NTSTATUS check_smbpasswd_security(const auth_usersupplied_info *user_info, auth_
/* get the account information */
become_root();
- ret = pdb_getsampwnam(sampass, user_info->smb_username.str);
+ ret = pdb_getsampwnam(sampass, user_info->unix_username.str);
unbecome_root();
if (ret == False)
{
- DEBUG(1,("Couldn't find user '%s' in passdb file.\n", user_info->smb_username.str));
+ DEBUG(1,("Couldn't find user '%s' in passdb file.\n", user_info->unix_username.str));
pdb_free_sam(sampass);
return NT_STATUS_NO_SUCH_USER;
}