summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-09-20 03:31:57 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-09-20 03:31:57 +0000
commit395454db5d7e911ea418b88250778749463f7247 (patch)
tree55ebea5492e3522aeb46f054b07d025c5893bcb5 /source3
parent79009d6afa421b39a61050e1c970ce0b9d0474d6 (diff)
downloadsamba-395454db5d7e911ea418b88250778749463f7247.tar.gz
samba-395454db5d7e911ea418b88250778749463f7247.tar.bz2
samba-395454db5d7e911ea418b88250778749463f7247.zip
Fix for MiXed and UPPER case usernames with plaintext PAM passwords.
(This used to be commit ba1b411f556bfac8b953c44c81257c7d8fb9817d)
Diffstat (limited to 'source3')
-rw-r--r--source3/auth/auth_unix.c2
-rw-r--r--source3/smbd/auth_unix.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/auth/auth_unix.c b/source3/auth/auth_unix.c
index 7c6c58cafa..4740f7fb0d 100644
--- a/source3/auth/auth_unix.c
+++ b/source3/auth/auth_unix.c
@@ -78,7 +78,7 @@ NTSTATUS check_unix_security(const auth_usersupplied_info *user_info, auth_serve
pass = Get_Pwnam(user_info->unix_username.str, False);
nt_status = (pass_check(pass,
- user_info->unix_username.str,
+ pass ? pass->pw_name : user_info->unix_username.str,
user_info->plaintext_password.str,
user_info->plaintext_password.len,
lp_update_encrypted() ?
diff --git a/source3/smbd/auth_unix.c b/source3/smbd/auth_unix.c
index 7c6c58cafa..4740f7fb0d 100644
--- a/source3/smbd/auth_unix.c
+++ b/source3/smbd/auth_unix.c
@@ -78,7 +78,7 @@ NTSTATUS check_unix_security(const auth_usersupplied_info *user_info, auth_serve
pass = Get_Pwnam(user_info->unix_username.str, False);
nt_status = (pass_check(pass,
- user_info->unix_username.str,
+ pass ? pass->pw_name : user_info->unix_username.str,
user_info->plaintext_password.str,
user_info->plaintext_password.len,
lp_update_encrypted() ?