From 4f15b47324e437cf502b3165553138b7e6ab474b Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 14 Jun 2012 09:41:05 +1000 Subject: s3-auth: make_new_system_info_session() now does not query nss This is important in some situations where these queries might be costly LDAP queries and is just not required for the system token. This is because the system token should be just the NT AUTHORITY\SYSTEM user and just enough unix info to allow the token to be used. Andrew Bartlett Signed-off-by: Andreas Schneider Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Tue Jun 19 13:34:28 CEST 2012 on sn-devel-104 --- source3/auth/auth_util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/auth') 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; -- cgit