summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-03-02 05:08:17 +0100
committerStefan Metzmacher <metze@samba.org>2012-06-21 16:07:14 +0200
commit2481158a16f530d1f2d7dc64a09d6b9b2ae07045 (patch)
tree014a54f62c2bdb4d39b78b8c9b1932b439db39a6 /source3
parenta7f4c2b6643002c22505566e0833162c6f4d5088 (diff)
downloadsamba-2481158a16f530d1f2d7dc64a09d6b9b2ae07045.tar.gz
samba-2481158a16f530d1f2d7dc64a09d6b9b2ae07045.tar.bz2
samba-2481158a16f530d1f2d7dc64a09d6b9b2ae07045.zip
s3:winbindd: discard the expired gid cache if we're online (bug #9002)
This matches the uid case... metze
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_sids_to_xids.c2
1 files changed, 1 insertions, 1 deletions
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;