s3-winbind: Fix chached user group lookup of trusted domains.
commitbb97c5e20c7ad3c6ec6e6b46f73ceb5636bc478d
authorMichael Adam <obnox@samba.org>
Mon, 9 Mar 2015 14:15:37 +0000 (9 15:15 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 24 Mar 2015 03:51:14 +0000 (24 04:51 +0100)
tree72131fc5d1c2500612b49d35eeb51f5abf8a4cce
parente92a548728d8629687899b2581ee227d0fbf6ec3
s3-winbind: Fix chached user group lookup of trusted domains.

If a user group lookup has aleady been done before with a machine
account we did always return the incomplete information from the cache.
This patch makes sure we return the correct group information from the
netsamlogon cache.

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

Pair-Programmed-With: Andreas Schneider <asn@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit f5d0204bfa1eb641fe7697613c1f773b6a7e65de)
source3/winbindd/wb_lookupusergroups.c