diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2020-09-30 10:44:57 +0200 |
---|---|---|
committer | Christian Mollekopf <mollekopf@kolabsys.com> | 2020-12-15 10:25:45 +0100 |
commit | 32deba14713709455ffa0d840a0af503a434c47c (patch) | |
tree | 07d600a55f294cac167617e57237a8d113c41eac /pykolab/auth/__init__.py | |
parent | a84b0bc55ffb1ff56af7d02684a24b09f471891c (diff) | |
download | pykolab-32deba14713709455ffa0d840a0af503a434c47c.tar.gz |
An initial version of the Plesk auth driver
Summary:
It implements just enough to get the kolab_smpt_access_policy going on
plesk.
Differential Revision: https://git.kolab.org/D1672
Diffstat (limited to 'pykolab/auth/__init__.py')
-rw-r--r-- | pykolab/auth/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pykolab/auth/__init__.py b/pykolab/auth/__init__.py index ad09130..c920b21 100644 --- a/pykolab/auth/__init__.py +++ b/pykolab/auth/__init__.py @@ -151,6 +151,11 @@ class Auth(Base): from pykolab.auth.ldap import LDAP self._auth = LDAP(self.domain) + elif conf.get(section, 'auth_mechanism') == 'plesk': + log.debug(_("Starting Plesk..."), level=8) + from pykolab.auth import plesk + self._auth = plesk.Plesk(self.domain) + # elif conf.get(section, 'auth_mechanism') == 'sql': # from .sql import SQL # self._auth = SQL(self.domain) |