summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-07-21 14:02:10 -0700
committerJeremy Allison <jra@samba.org>2011-07-22 01:58:39 +0200
commitfafd386910ca5f17c42cd0cf0a7c759f0950d518 (patch)
treedd7a1f2202fa879641fd2540c02a108dad5559f7
parentb19b05cd0aa0e3f82c134f8d9d5d486dad60dd5a (diff)
downloadsamba-fafd386910ca5f17c42cd0cf0a7c759f0950d518.tar.gz
samba-fafd386910ca5f17c42cd0cf0a7c759f0950d518.tar.bz2
samba-fafd386910ca5f17c42cd0cf0a7c759f0950d518.zip
Fix const warning.
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Jul 22 01:58:39 CEST 2011 on sn-devel-104
-rw-r--r--source3/auth/auth_util.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index 2689afd7d1..a261e39b7b 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -562,14 +562,17 @@ NTSTATUS create_local_token(TALLOC_CTX *mem_ctx,
if (((lp_server_role() == ROLE_DOMAIN_MEMBER) && !winbind_ping()) ||
(server_info->nss_token)) {
+ char *found_username = NULL;
status = create_token_from_username(session_info,
server_info->unix_name,
server_info->guest,
&session_info->unix_token->uid,
&session_info->unix_token->gid,
- &session_info->unix_info->unix_name,
+ &found_username,
&session_info->security_token);
-
+ if (NT_STATUS_IS_OK(status)) {
+ session_info->unix_info->unix_name = found_username;
+ }
} else {
status = create_local_nt_token_from_info3(session_info,
server_info->guest,