From 9a45bf39527d9c2dcd8d2debf214196100a3efce Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 26 Jul 2011 13:37:36 +1000 Subject: 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 --- source3/libsmb/ntlmssp_wrap.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'source3/libsmb') 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) { -- cgit