diff options
Diffstat (limited to 'source3/include/auth.h')
-rw-r--r-- | source3/include/auth.h | 10 |
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 { |