diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-06-01 20:30:56 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-06-07 23:34:28 +1000 |
commit | 7a021df96deaf6dbe9f1abdfc16f6276e4a192fa (patch) | |
tree | 21d1f7f53c4d2f40883332548d3fb3e41c358556 /source3/auth/auth_unix.c | |
parent | 23159453d3e61e2ad47fe6f86f3763280a11ea0c (diff) | |
download | samba-7a021df96deaf6dbe9f1abdfc16f6276e4a192fa.tar.gz samba-7a021df96deaf6dbe9f1abdfc16f6276e4a192fa.tar.bz2 samba-7a021df96deaf6dbe9f1abdfc16f6276e4a192fa.zip |
s3:auth Rename user_info->internal_username -> user_info->mapped.account_name
This is closer to the structure I want for a common struct
auth_usersupplied_info.
Andrew Bartlett
Diffstat (limited to 'source3/auth/auth_unix.c')
-rw-r--r-- | source3/auth/auth_unix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/auth/auth_unix.c b/source3/auth/auth_unix.c index 2bc2b06f15..c94ec2f1e0 100644 --- a/source3/auth/auth_unix.c +++ b/source3/auth/auth_unix.c @@ -91,15 +91,15 @@ static NTSTATUS check_unix_security(const struct auth_context *auth_context, NTSTATUS nt_status; struct passwd *pass = NULL; - DEBUG(10, ("Check auth for: [%s]\n", user_info->internal_username)); + DEBUG(10, ("Check auth for: [%s]\n", user_info->mapped.account_name)); become_root(); - pass = Get_Pwnam_alloc(talloc_tos(), user_info->internal_username); + pass = Get_Pwnam_alloc(talloc_tos(), user_info->mapped.account_name); /** @todo This call assumes a ASCII password, no charset transformation is done. We may need to revisit this **/ nt_status = pass_check(pass, - pass ? pass->pw_name : user_info->internal_username, + pass ? pass->pw_name : user_info->mapped.account_name, (char *)user_info->plaintext_password.data, user_info->plaintext_password.length-1, lp_update_encrypted() ? |