more debug logging in ldap

This commit is contained in:
Garrett Mills 2020-08-20 07:59:36 -05:00
parent 84821742b6
commit 61a304162d
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

View File

@ -274,6 +274,7 @@ class UsersController extends LDAPController {
// Make sure the user is of appropriate scope
if ( req.dn.equals(user.dn) || req.dn.parentOf(user.dn) ) {
this.output.debug(`Matches sub scope. Matches filter? ${req.filter.matches(await user.to_ldap(iam_targets))}`)
// Check if filter matches
if ( req.filter.matches(await user.to_ldap(iam_targets)) ) {