summaryrefslogtreecommitdiffstats
path: root/source/nsswitch/winbindd_pam.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/nsswitch/winbindd_pam.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/nsswitch/winbindd_pam.c')
-rw-r--r--source/nsswitch/winbindd_pam.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/nsswitch/winbindd_pam.c b/source/nsswitch/winbindd_pam.c
index 0408c3a2fb0..262a9d7a33d 100644
--- a/source/nsswitch/winbindd_pam.c
+++ b/source/nsswitch/winbindd_pam.c
@@ -96,8 +96,8 @@ enum winbindd_result winbindd_pam_auth(struct winbindd_cli_state *state)
user_info.smb_username.str = name_user;
user_info.smb_username.len = strlen(name_user);
- user_info.requested_username.str = name_user;
- user_info.requested_username.len = strlen(name_user);
+ user_info.unix_username.str = name_user;
+ user_info.unix_username.len = strlen(name_user);
user_info.wksta_name.str = global_myname;
user_info.wksta_name.len = strlen(user_info.wksta_name.str);
@@ -172,8 +172,8 @@ enum winbindd_result winbindd_pam_auth_crap(struct winbindd_cli_state *state)
user_info.smb_username.str = name_user;
user_info.smb_username.len = strlen(name_user);
- user_info.requested_username.str = name_user;
- user_info.requested_username.len = strlen(name_user);
+ user_info.unix_username.str = name_user;
+ user_info.unix_username.len = strlen(name_user);
user_info.wksta_name.str = global_myname;
user_info.wksta_name.len = strlen(user_info.wksta_name.str);