|
|
|
@ -265,8 +265,12 @@ class UsersController extends LDAPController {
|
|
|
|
|
this.output.debug(`Searching ${users.length} users...`)
|
|
|
|
|
this.output.debug(`Request DN: ${req.dn}`)
|
|
|
|
|
this.output.debug(`Filter:`)
|
|
|
|
|
this.output.debug(req.filter)
|
|
|
|
|
this.output.debug(req.filter.json)
|
|
|
|
|
for ( const user of users ) {
|
|
|
|
|
this.output.debug(`Checking ${user.uid}...`)
|
|
|
|
|
this.output.debug(`DN: ${user.dn}`)
|
|
|
|
|
this.output.debug(`Req DN equals: ${req.dn.equals(user.dn)}`)
|
|
|
|
|
this.output.debug(`Req DN parent of: ${req.dn.parentOf(user.dn)}`)
|
|
|
|
|
|
|
|
|
|
// Make sure the user is of appropriate scope
|
|
|
|
|
if ( req.dn.equals(user.dn) || req.dn.parentOf(user.dn) ) {
|
|
|
|
|