more debug logging in ldap

This commit is contained in:
Garrett Mills 2020-08-20 07:58:01 -05:00
parent 2a7adf05d1
commit 84821742b6
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

View File

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