s3: smbd: Ensure we always go via getgroups_unix_user() when creating an NT token.
authorJeremy Allison <jra@samba.org>
Thu, 20 Mar 2014 19:39:10 +0000 (12:39 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 21 Mar 2014 18:20:17 +0000 (19:20 +0100)
commit6034ab521c47fc5f4732398652c9c6847ff92035
tree723a2df54fed020b3872108bed823a24453749f8
parentefad13addca918e18e3df341cc38405a93028940
s3: smbd: Ensure we always go via getgroups_unix_user() when creating an NT token.

This has to be done in every code path that creates
an NT token, as remote users may have been added to
the local /etc/group database. Tokens created merely
from the info3 structs (via the DC or via the krb5 PAC)
won't have these local groups.

https://bugzilla.samba.org/show_bug.cgi?id=10508

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Simo Sorce <idra@samba.org>
source3/auth/token_util.c