Support RFC2255 definition of scope for ldap authentication
Closes #12150
This commit is contained in:
1 parent
9e7bbb97cf
commit
de7bb13e1e
1 file changed
+2
@@ -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_:
|
||||
|
||||
Reference in new issue
Block a user