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)
committerStefan Metzmacher <metze@samba.org>
Thu, 21 Jun 2012 14:07:14 +0000 (16:07 +0200)
This matches the uid case...

metze

source3/winbindd/winbindd_sids_to_xids.c

index 8201739a96a44725370093c103d48593243bce16..aa179b7db0ab62630dac48f1cd825bfa38309037 100644 (file)
@@ -130,7 +130,7 @@ static bool winbindd_sids_to_xids_in_cache(struct dom_sid *sid,
                return false;
        }
        if (idmap_cache_find_sid2unixid(sid, &id, &expired)) {
-               if (expired && is_domain_offline(find_our_domain())) {
+               if (expired && is_domain_online(find_our_domain())) {
                        return false;
                }
                map->sid = sid;