summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-07-26 13:43:33 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-08-03 18:48:04 +1000
commit1aced1e989a9fb052ee67e302e59df1113e6bd79 (patch)
treef8975bf00faa23f9735fdded6c658fcfd9bd6a51 /source3/include
parent9a45bf39527d9c2dcd8d2debf214196100a3efce (diff)
downloadsamba-1aced1e989a9fb052ee67e302e59df1113e6bd79.tar.gz
samba-1aced1e989a9fb052ee67e302e59df1113e6bd79.tar.bz2
samba-1aced1e989a9fb052ee67e302e59df1113e6bd79.zip
s3-auth remove sanitized_username from auth_serversupplied_info
This structure element was only written to, not read. It is filled into the companion structure, auth_session_info() by create_local_token(). Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/auth.h9
-rw-r--r--source3/include/proto.h1
2 files changed, 0 insertions, 10 deletions
diff --git a/source3/include/auth.h b/source3/include/auth.h
index 5c842fd550..be23adb4a7 100644
--- a/source3/include/auth.h
+++ b/source3/include/auth.h
@@ -66,15 +66,6 @@ struct auth_serversupplied_info {
bool nss_token;
char *unix_name;
-
- /*
- * For performance reasons we keep an alpha_strcpy-sanitized version
- * of the username around as long as the global variable current_user
- * still exists. If we did not do keep this, we'd have to call
- * alpha_strcpy whenever we do a become_user(), potentially on every
- * smb request. See set_current_user_info.
- */
- char *sanitized_username;
};
struct auth_context {
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 2619e7bbde..47321f3aa4 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -893,7 +893,6 @@ bool validate_net_name( const char *name,
int max_len);
char *escape_shell_string(const char *src);
char **str_list_make_v3(TALLOC_CTX *mem_ctx, const char *string, const char *sep);
-char *sanitize_username(TALLOC_CTX *mem_ctx, const char *username);
/* The following definitions come from lib/version.c */