fix: LDAP objectClass guessing exception

This commit is contained in:
Éloi Rivard 2024-04-08 11:00:36 +02:00
parent c92ee431eb
commit cbde5ba7b7
No known key found for this signature in database
GPG key ID: 7EDA204EA57DD184
2 changed files with 5 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Fixed
^^^^^
- LDAP objectClass guessing exception.
[0.0.47] - 2024-04-08 [0.0.47] - 2024-04-08
--------------------- ---------------------

View file

@ -103,6 +103,7 @@ class LDAPObjectQuery:
models = [ models = [
LDAPObjectMetaclass.ldap_to_python_class[oc.decode()] LDAPObjectMetaclass.ldap_to_python_class[oc.decode()]
for oc in object_classes for oc in object_classes
if oc.decode() in LDAPObjectMetaclass.ldap_to_python_class
] ]
return models[0] return models[0]
return klass return klass