summaryrefslogtreecommitdiff
path: root/source3/include/auth.h
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-04-30 17:42:39 +0200
committerVolker Lendecke <vl@samba.org>2008-05-05 18:28:59 +0200
commitbec1dfab27be3db888eeb451b4547f16e08e93c3 (patch)
treef1b85618a0bf8ecd39a07d0039fb3b843477f6f1 /source3/include/auth.h
parenta683625d7fe0be58da23b98828b445478df1606f (diff)
downloadsamba-bec1dfab27be3db888eeb451b4547f16e08e93c3.tar.gz
samba-bec1dfab27be3db888eeb451b4547f16e08e93c3.tar.bz2
samba-bec1dfab27be3db888eeb451b4547f16e08e93c3.zip
Remove "userdom_struct user" from "struct user_struct"
(This used to be commit 420de035237bb08bc470c9eb820f3da2edaa6805)
Diffstat (limited to 'source3/include/auth.h')
-rw-r--r--source3/include/auth.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/include/auth.h b/source3/include/auth.h
index a7531b35cd..df2bed8756 100644
--- a/source3/include/auth.h
+++ b/source3/include/auth.h
@@ -69,7 +69,15 @@ typedef struct auth_serversupplied_info {
bool was_mapped; /* Did the username map match? */
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;
} auth_serversupplied_info;
struct auth_context {