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/smbd/reply.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/smbd/reply.c')
-rw-r--r-- | source/smbd/reply.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c index c2d38a10766..9e88f58fa6b 100644 --- a/source/smbd/reply.c +++ b/source/smbd/reply.c @@ -462,7 +462,7 @@ static int session_trust_account(connection_struct *conn, char *inbuf, char *out smb_username.str = user; smb_username.len = strlen(smb_username.str); - user_info.requested_username = smb_username; /* For the time-being */ + user_info.unix_username = smb_username; /* For the time-being */ user_info.smb_username = smb_username; user_info.wksta_name = wksta_name; @@ -776,7 +776,8 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,int add_session_user(user); if (!guest) { - valid_password = NT_STATUS_IS_OK(pass_check_smb(user, domain, + valid_password = NT_STATUS_IS_OK(pass_check_smb(orig_user, user, + domain, (unsigned char *)smb_apasswd, smb_apasslen, (unsigned char *)smb_ntpasswd, |