|
867 |
|
867 |
|
868 |
# case normalize object class names |
868 |
# case normalize object class names |
869 |
schema = self.lo.get_schema() |
869 |
schema = self.lo.get_schema() |
870 |
ocs = set(schema.get_obj(ldap.schema.models.ObjectClass, x).names[0] for x in ocs) |
870 |
ocs = (schema.get_obj(ldap.schema.models.ObjectClass, x) for x in ocs) |
|
|
871 |
ocs = set(x.names[0] for x in ocs if x) |
871 |
|
872 |
|
872 |
# make sure we still have a structural object class |
873 |
# make sure we still have a structural object class |
873 |
if not schema.get_structural_oc(ocs): |
874 |
if not schema.get_structural_oc(ocs): |