summaryrefslogtreecommitdiff
path: root/source3/libsmb/ntlmssp_wrap.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-07-26 13:37:36 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-08-03 18:48:04 +1000
commit9a45bf39527d9c2dcd8d2debf214196100a3efce (patch)
tree080e2c9bc12348cd4a7f96f5ce9deb1cc55ed741 /source3/libsmb/ntlmssp_wrap.c
parent8b983d232648944c18fe878a3ace0f58658ec24d (diff)
downloadsamba-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/libsmb/ntlmssp_wrap.c')
-rw-r--r--source3/libsmb/ntlmssp_wrap.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/source3/libsmb/ntlmssp_wrap.c b/source3/libsmb/ntlmssp_wrap.c
index 91e5d0e5d9..ba22300cab 100644
--- a/source3/libsmb/ntlmssp_wrap.c
+++ b/source3/libsmb/ntlmssp_wrap.c
@@ -111,15 +111,6 @@ bool auth_ntlmssp_negotiated_seal(struct auth_ntlmssp_state *ans)
return ans->ntlmssp_state->neg_flags & NTLMSSP_NEGOTIATE_SEAL;
}
-/* Needed for 'smb username' processing */
-const char *auth_ntlmssp_get_username(struct auth_ntlmssp_state *ans)
-{
- if (ans->gensec_security) {
- return ""; /* We can't get at this value, and it's just for the %U macros */
- }
- return ans->ntlmssp_state->user;
-}
-
NTSTATUS auth_ntlmssp_set_username(struct auth_ntlmssp_state *ans,
const char *user)
{