mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
session: do not initialize session manager on import
Removes the side effect of attempting to connect to memcached when the session module is imported, which caused user visible warnings and/or SELinux AVC denials. https://fedorahosted.org/freeipa/ticket/5988 Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
@@ -2,12 +2,10 @@
|
||||
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
||||
#
|
||||
|
||||
from ipalib import api, Command
|
||||
from ipalib import Command
|
||||
from ipalib.request import context
|
||||
from ipalib.plugable import Registry
|
||||
|
||||
if api.env.in_server:
|
||||
from ipaserver.session import session_mgr
|
||||
from ipaserver.session import get_session_mgr
|
||||
|
||||
register = Registry()
|
||||
|
||||
@@ -28,6 +26,7 @@ class session_logout(Command):
|
||||
self.debug('session logout command: session_id=%s', session_id)
|
||||
|
||||
# Notifiy registered listeners
|
||||
session_mgr = get_session_mgr()
|
||||
session_mgr.auth_mgr.logout(session_data)
|
||||
|
||||
return dict(result=None)
|
||||
|
||||
Reference in New Issue
Block a user