more debug logging in ldap
This commit is contained in:
parent
2a7adf05d1
commit
84821742b6
@ -265,8 +265,12 @@ class UsersController extends LDAPController {
|
|||||||
this.output.debug(`Searching ${users.length} users...`)
|
this.output.debug(`Searching ${users.length} users...`)
|
||||||
this.output.debug(`Request DN: ${req.dn}`)
|
this.output.debug(`Request DN: ${req.dn}`)
|
||||||
this.output.debug(`Filter:`)
|
this.output.debug(`Filter:`)
|
||||||
this.output.debug(req.filter)
|
this.output.debug(req.filter.json)
|
||||||
for ( const user of users ) {
|
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
|
// Make sure the user is of appropriate scope
|
||||||
if ( req.dn.equals(user.dn) || req.dn.parentOf(user.dn) ) {
|
if ( req.dn.equals(user.dn) || req.dn.parentOf(user.dn) ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user