summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-01-28 12:33:07 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-01-28 12:33:07 +0100
commit578bd98584731e580e714e82fbebfc87e802b9fe (patch)
tree574a67da885831e1df926f737814f10affaca7b7
parent825d27ed826e042a100b4196d1db6f5a252b3e5f (diff)
downloadpykolab-pykolab-0.6.11.tar.gz
Only not apply the recipient policy in the daemon if the setting is explicitly falsepykolab-0.6.11
-rw-r--r--pykolab/auth/ldap/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pykolab/auth/ldap/__init__.py b/pykolab/auth/ldap/__init__.py
index 2f7d49c..8572fec 100644
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -578,7 +578,7 @@ class LDAP(pykolab.base.Base):
secondary_mail_attribute = mail_attributes[1]
daemon_rcpt_policy = self.config_get('daemon_rcpt_policy')
- if not utils.true_or_false(daemon_rcpt_policy) == False and not daemon_rcpt_policy == None:
+ if not utils.true_or_false(daemon_rcpt_policy) and not daemon_rcpt_policy == None:
log.info(_("Applying recipient policy disabled through configuration"))
return entry_modifications