summaryrefslogtreecommitdiffstats
path: root/pykolab/auth/ldap/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/auth/ldap/__init__.py')
-rw-r--r--pykolab/auth/ldap/__init__.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/pykolab/auth/ldap/__init__.py b/pykolab/auth/ldap/__init__.py
index d114789..c5643d9 100644
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -2687,6 +2687,12 @@ class LDAP(Base):
}
entry = utils.normalize(kw['entry'])
+
+ # Ignore nstombstone objects
+ if 'objectclass' in entry:
+ if 'nstombstone' in entry['objectclass']:
+ return None
+
entry['dn'] = kw['dn']
unique_attr = self.config_get('unique_attribute')
@@ -2739,6 +2745,11 @@ class LDAP(Base):
for attr in entry_attrs.keys():
entry[attr.lower()] = entry_attrs[attr]
+ # Ignore nstombstone objects
+ if 'objectclass' in entry:
+ if 'nstombstone' in entry['objectclass']:
+ return None
+
unique_attr = self.config_get('unique_attribute').lower()
entry['id'] = entry[unique_attr]