summaryrefslogtreecommitdiff
path: root/source3/auth
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/auth
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/auth')
-rw-r--r--source3/auth/auth_util.c17
-rw-r--r--source3/auth/server_info_sam.c7
2 files changed, 1 insertions, 23 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index e6d8e16b8e..b8cc871b62 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -753,10 +753,8 @@ NTSTATUS make_server_info_pw(struct auth_serversupplied_info **server_info,
}
result->unix_name = talloc_strdup(result, unix_username);
- result->sanitized_username = sanitize_username(result, unix_username);
- if ((result->unix_name == NULL)
- || (result->sanitized_username == NULL)) {
+ if (result->unix_name == NULL) {
TALLOC_FREE(result);
return NT_STATUS_NO_MEMORY;
}
@@ -1043,12 +1041,6 @@ static struct auth_serversupplied_info *copy_session_info_serverinfo_guest(TALLO
return NULL;
}
- dst->sanitized_username = talloc_strdup(dst, src->unix_info->sanitized_username);
- if (!dst->sanitized_username) {
- TALLOC_FREE(dst);
- return NULL;
- }
-
return dst;
}
@@ -1413,13 +1405,6 @@ NTSTATUS make_server_info_info3(TALLOC_CTX *mem_ctx,
result->unix_name = talloc_strdup(result, found_username);
- result->sanitized_username = sanitize_username(result,
- result->unix_name);
- if (result->sanitized_username == NULL) {
- TALLOC_FREE(result);
- return NT_STATUS_NO_MEMORY;
- }
-
/* copy in the info3 */
result->info3 = i3 = copy_netr_SamInfo3(result, info3);
if (result->info3 == NULL) {
diff --git a/source3/auth/server_info_sam.c b/source3/auth/server_info_sam.c
index 261e3de8f2..5d657f90c8 100644
--- a/source3/auth/server_info_sam.c
+++ b/source3/auth/server_info_sam.c
@@ -92,13 +92,6 @@ NTSTATUS make_server_info_sam(struct auth_serversupplied_info **server_info,
TALLOC_FREE(pwd);
- result->sanitized_username = sanitize_username(result,
- result->unix_name);
- if (result->sanitized_username == NULL) {
- TALLOC_FREE(result);
- return NT_STATUS_NO_MEMORY;
- }
-
if (IS_DC && is_our_machine_account(username)) {
/*
* This is a hack of monstrous proportions.