summaryrefslogtreecommitdiff
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-04-24 13:10:14 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-04-24 13:10:14 (GMT)
commit934359775551443e95ecf67978dec07b86377478 (patch)
tree37205b5af2b4a5c1c245c869be8df2fb31060893 /pykolab
parent00cfbaceebb863148b21f62af2d9c7acd89f1fa3 (diff)
downloadpykolab-934359775551443e95ecf67978dec07b86377478.tar.gz
Allow domain=None to be passed to Auth()
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/auth/__init__.py7
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):
"""