more debug logging in ldap

feature/cd
Garrett Mills 4 years ago
parent 2a7adf05d1
commit 84821742b6
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

@ -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) ) {

Loading…
Cancel
Save