diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-07-26 13:37:36 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-08-03 18:48:04 +1000 |
commit | 9a45bf39527d9c2dcd8d2debf214196100a3efce (patch) | |
tree | 080e2c9bc12348cd4a7f96f5ce9deb1cc55ed741 /source3/smbd/password.c | |
parent | 8b983d232648944c18fe878a3ace0f58658ec24d (diff) | |
download | samba-9a45bf39527d9c2dcd8d2debf214196100a3efce.tar.gz samba-9a45bf39527d9c2dcd8d2debf214196100a3efce.tar.bz2 samba-9a45bf39527d9c2dcd8d2debf214196100a3efce.zip |
s3-auth set session_info->sanitized_username in create_local_token()
Rather than passing this value around the callers, and eventually
setting it in register_existing_vuid(), we simply pass it to
create_local_token(). This also removes the need for
auth_ntlmssp_get_username().
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3/smbd/password.c')
-rw-r--r-- | source3/smbd/password.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c index e23818f2d1..7ccf2ea327 100644 --- a/source3/smbd/password.c +++ b/source3/smbd/password.c @@ -265,10 +265,8 @@ int register_homes_share(const char *username) int register_existing_vuid(struct smbd_server_connection *sconn, uint16 vuid, struct auth_session_info *session_info, - DATA_BLOB response_blob, - const char *smb_name) + DATA_BLOB response_blob) { - fstring tmp; user_struct *vuser; bool guest = security_session_user_level(session_info, NULL) < SECURITY_USER; @@ -280,12 +278,6 @@ int register_existing_vuid(struct smbd_server_connection *sconn, /* Use this to keep tabs on all our info from the authentication */ vuser->session_info = talloc_move(vuser, &session_info); - /* This is a potentially untrusted username */ - alpha_strcpy(tmp, smb_name, ". _-$", sizeof(tmp)); - - vuser->session_info->unix_info->sanitized_username = talloc_strdup( - vuser->session_info, tmp); - /* Make clear that we require the optional unix_token and unix_info in the source3 code */ SMB_ASSERT(vuser->session_info->unix_token); SMB_ASSERT(vuser->session_info->unix_info); |