From 2481158a16f530d1f2d7dc64a09d6b9b2ae07045 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 2 Mar 2012 05:08:17 +0100 Subject: s3:winbindd: discard the expired gid cache if we're online (bug #9002) This matches the uid case... metze --- source3/winbindd/winbindd_sids_to_xids.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/winbindd/winbindd_sids_to_xids.c') diff --git a/source3/winbindd/winbindd_sids_to_xids.c b/source3/winbindd/winbindd_sids_to_xids.c index 8201739a96..aa179b7db0 100644 --- a/source3/winbindd/winbindd_sids_to_xids.c +++ b/source3/winbindd/winbindd_sids_to_xids.c @@ -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; -- cgit