diff --git a/ipapython/ipaldap.py b/ipapython/ipaldap.py index 74add512a..9fb7fd3f5 100644 --- a/ipapython/ipaldap.py +++ b/ipapython/ipaldap.py @@ -456,7 +456,7 @@ class LDAPEntry(collections.MutableMapping): def __delitem__(self, name): name = self._get_attr_name(name) - for (altname, keyname) in self._names.items(): + for (altname, keyname) in list(self._names.items()): if keyname == name: del self._names[altname]