diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-07-18 19:07:35 +0200 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-07-18 19:07:35 +0200 |
commit | d44815b60ab21da0f6d04e0d9f218828aa27cdb4 (patch) | |
tree | 0f80ff7b08807e33f2f24a1a09f3deeb777756fa | |
parent | 21b33ad600d70e178eb48a9053314f58559fccfa (diff) | |
download | pykolab-d44815b60ab21da0f6d04e0d9f218828aa27cdb4.tar.gz |
Execute the correct change notification callback function
-rw-r--r-- | pykolab/auth/ldap/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pykolab/auth/ldap/__init__.py b/pykolab/auth/ldap/__init__.py index 26b4438..71f16ce 100644 --- a/pykolab/auth/ldap/__init__.py +++ b/pykolab/auth/ldap/__init__.py @@ -1069,6 +1069,7 @@ class LDAP(pykolab.base.Base): the entry was - user, group, role or sharedfolder. """ result_attribute = conf.get('cyrus-sasl', 'result_attribute') + if not entry.has_key(result_attribute): return None @@ -1078,7 +1079,7 @@ class LDAP(pykolab.base.Base): success = True for _type in ['user','group','role','sharedfolder']: try: - eval("_change_delete_%s(entry, change)" % (_type)) + eval("self._change_delete_%s(entry, change)" % (_type)) except: success = False @@ -1089,7 +1090,6 @@ class LDAP(pykolab.base.Base): """ An entry of type user was deleted. """ - result_attribute = conf.get('cyrus-sasl', 'result_attribute') if not entry.has_key(result_attribute): |