forked from Github-Mirrors/canaille
fix: LDAP objectClass guessing exception
This commit is contained in:
parent
c92ee431eb
commit
cbde5ba7b7
2 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Fixed
|
||||||
|
^^^^^
|
||||||
|
- LDAP objectClass guessing exception.
|
||||||
|
|
||||||
[0.0.47] - 2024-04-08
|
[0.0.47] - 2024-04-08
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue