s3-auth: make_new_system_info_session() not query passdb
commit5c67599650f2cb1974a0ea05f78cb414e19da72a
authorAndrew Bartlett <abartlet@samba.org>
Tue, 12 Jun 2012 07:15:19 +0000 (12 17:15 +1000)
committerAndreas Schneider <asn@samba.org>
Tue, 19 Jun 2012 08:38:14 +0000 (19 10:38 +0200)
treedd54fbecbe20342519010d5150444b07ca42c1d1
parent8ecee11790c68948a12bdc46f07a05586c8afaf6
s3-auth: make_new_system_info_session() not query passdb

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.

We query only NSS to get the name of sec_initial_uid()

Signed-off-by: Andreas Schneider <asn@samba.org>
source3/auth/auth_util.c