mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Revert "Search allowed attributes in superior objectclasses"
This reverts commit a58cbb985e.
We are going to take another approach to this. Instead of erroring
out on attributes that don't seem to be allowed we are going to
eventually return a warning.
This commit is contained in:
@@ -413,9 +413,6 @@ class ldap2(CrudBackend, Encoder):
|
||||
obj = self.schema.get_obj(_ldap.schema.ObjectClass, oc)
|
||||
if obj is not None:
|
||||
allowed_attributes += obj.must + obj.may
|
||||
# look for allowed attributes in the superior objectclasses
|
||||
if obj.sup:
|
||||
allowed_attributes += self.get_allowed_attributes(obj.sup,raise_on_unknown)
|
||||
elif raise_on_unknown:
|
||||
raise errors.NotFound(reason=_('objectclass %s not found') % oc)
|
||||
return [unicode(a).lower() for a in list(set(allowed_attributes))]
|
||||
|
||||
Reference in New Issue
Block a user