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:34:17 +0100
commit92bf9969e7e9ddadbc69100193478a0b6bd3085c (patch)
treef2b5ace3c055229a3948062a588a4dcd9e7b4e19
parenteef4fcb4a64c29a9c1c5fb670f8a5a6a813591b3 (diff)
downloadpykolab-92bf9969e7e9ddadbc69100193478a0b6bd3085c.tar.gz
Only not apply the recipient policy in the daemon if the setting is explicitly false
-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