diff options
author | Tim Potter <tpot@samba.org> | 2001-09-12 06:39:50 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-09-12 06:39:50 +0000 |
commit | d34fd8ec0716127c7a68eeb8e77d1ae8cc07b547 (patch) | |
tree | 45ddaa7bc0a3eaa2ed264ce91415e5c79fb5f125 /source/auth/auth_unix.c | |
parent | b8651acb9c0d7248a6a2e82c33b1e43633fd83fd (diff) | |
download | samba-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_unix.c')
-rw-r--r-- | source/auth/auth_unix.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/auth/auth_unix.c b/source/auth/auth_unix.c index 17083209617..ea32a65457e 100644 --- a/source/auth/auth_unix.c +++ b/source/auth/auth_unix.c @@ -73,9 +73,11 @@ NTSTATUS check_unix_security(const auth_usersupplied_info *user_info, auth_serve NTSTATUS nt_status; become_root(); - nt_status = (pass_check(user_info->smb_username.str, user_info->plaintext_password.str, + nt_status = (pass_check(user_info->unix_username.str, + user_info->plaintext_password.str, user_info->plaintext_password.len, - lp_update_encrypted() ? update_smbpassword_file : NULL) + lp_update_encrypted() ? + update_smbpassword_file : NULL) ? NT_STATUS_OK : NT_STATUS_LOGON_FAILURE); unbecome_root(); |