summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-06-14 09:41:05 +1000
committerAndreas Schneider <asn@cryptomilk.org>2012-06-19 13:34:27 +0200
commit4f15b47324e437cf502b3165553138b7e6ab474b (patch)
treeb914f570dc0c26a247170a7123423a965b94bf48 /source3
parent5c67599650f2cb1974a0ea05f78cb414e19da72a (diff)
downloadsamba-4f15b47324e437cf502b3165553138b7e6ab474b.tar.gz
samba-4f15b47324e437cf502b3165553138b7e6ab474b.tar.bz2
samba-4f15b47324e437cf502b3165553138b7e6ab474b.zip
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 <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue Jun 19 13:34:28 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3')
-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;