s3:winbindd: discard the expired gid cache if we're online (bug #9002)
authorStefan Metzmacher <metze@samba.org>
Fri, 2 Mar 2012 04:08:17 +0000 (05:08 +0100)
committerKarolin Seeger <kseeger@samba.org>
Sat, 30 Jun 2012 11:21:05 +0000 (13:21 +0200)
This matches the uid case...

metze

source3/winbindd/winbindd_sids_to_xids.c

index 9c38b5a2a9a5fcc44db2360c9f2c00f0e9c95358..b3699d06f801c86d227c8d1629dd93d6e5b86cba 100644 (file)
@@ -135,7 +135,7 @@ static bool winbindd_sids_to_xids_in_cache(struct dom_sid *sid,
         * sids. So we check groups before users.
         */
        if (idmap_cache_find_sid2gid(sid, &gid, &expired)) {
-               if (expired && is_domain_offline(find_our_domain())) {
+               if (expired && is_domain_online(find_our_domain())) {
                        return false;
                }
                map->sid = sid;