summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index b8f710c9ef..b38ee48d7f 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -963,7 +963,9 @@ static NTSTATUS make_new_session_info_system(TALLOC_CTX *mem_ctx,
server_info->utok.uid = sec_initial_uid();
server_info->utok.gid = sec_initial_gid();
- server_info->unix_name = talloc_strdup(server_info, uidtoname(server_info->utok.uid));
+ server_info->unix_name = talloc_asprintf(server_info,
+ "NT AUTHORITY%cSYSTEM",
+ *lp_winbind_separator());
if (!server_info->unix_name) {
status = NT_STATUS_NO_MEMORY;