diff --git a/controller/DBMirrorSet.cpp b/controller/DBMirrorSet.cpp index 83998e3bc..f15d393c0 100644 --- a/controller/DBMirrorSet.cpp +++ b/controller/DBMirrorSet.cpp @@ -260,7 +260,9 @@ std::set< std::pair > DBMirrorSet::membersExpiringSoon() // Stop when we get to entries too far in the future. break; } else { - soon.insert(std::pair(nwid, memberId)); + const bool ssoEnabled = network["ssoEnabled"]; + if (ssoEnabled) + soon.insert(std::pair(nwid, memberId)); } } else { // Obsolete entry, no longer authorized, or SSO exempt.