Flesh out users OU (works with Gitea simple LDAP now!!)
This commit is contained in:
@@ -14,7 +14,7 @@ class BindUserMiddleware extends LDAPMiddleware {
|
||||
return next(new LDAP.InsufficientAccessRightsError())
|
||||
}
|
||||
|
||||
const user = this.user_controller().get_uid_from_dn(bind_dn)
|
||||
const user = await this.user_controller().get_resource_from_dn(bind_dn)
|
||||
if ( !user || !user.can('ldap:bind') ) {
|
||||
return next(new LDAP.InvalidCredentialsError())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user