diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-04-24 15:10:14 +0200 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-04-24 15:10:14 +0200 |
commit | 934359775551443e95ecf67978dec07b86377478 (patch) | |
tree | 37205b5af2b4a5c1c245c869be8df2fb31060893 /pykolab/auth/__init__.py | |
parent | 00cfbaceebb863148b21f62af2d9c7acd89f1fa3 (diff) | |
download | pykolab-934359775551443e95ecf67978dec07b86377478.tar.gz |
Allow domain=None to be passed to Auth()
Diffstat (limited to 'pykolab/auth/__init__.py')
-rw-r--r-- | pykolab/auth/__init__.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pykolab/auth/__init__.py b/pykolab/auth/__init__.py index 5686e4b..47f2322 100644 --- a/pykolab/auth/__init__.py +++ b/pykolab/auth/__init__.py @@ -33,7 +33,7 @@ class Auth(pykolab.base.Base): This is the Authentication and Authorization module for PyKolab. """ - def __init__(self, domain): + def __init__(self, domain=None): """ Initialize the authentication class. """ @@ -41,7 +41,10 @@ class Auth(pykolab.base.Base): self._auth = None - self.domain = domain + if not domain == None: + self.domain = domain + else: + self.domain = conf.get('kolab', 'primary_domain') def authenticate(self, login): """ |