fix bug when removing attributes from source outside the permitted attributes

This commit is contained in:
Benjamin Dauvergne 2016-02-19 16:28:45 +01:00
parent 6e0e7a360e
commit 7feabe70e7
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ class Synchronize(object):
entries = list(self.source)
entries.sort(key=lambda (dn, entry): len(str2dn(dn)))
for dn, entry in entries:
for key in entry:
for key in entry.keys():
if not key in self.attributes:
del entry[key]
# First create, rename and update