Support RFC2255 definition of scope for ldap authentication

Closes #12150
This commit is contained in:
Wolfgang Schröder committed 2023-07-18 19:10:20 +02:00
1 parent 9e7bbb97cf
commit de7bb13e1e
1 file changed
+2
+2
View File
@@ -68,7 +68,9 @@ class User(metaclass=PoolMeta):
scope = {
'base': ldap3.BASE,
'onelevel': ldap3.LEVEL,
'one': ldap3.LEVEL,
'subtree': ldap3.SUBTREE,
'sub': ldap3.SUBTREE,
}[scope]
uid = config.get(section, 'uid', default='uid')
if filter_: