more debug logging in ldap

This commit is contained in:
Garrett Mills 2020-08-20 07:55:06 -05:00
parent e35072c687
commit 2a7adf05d1
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

View File

@ -262,6 +262,10 @@ class UsersController extends LDAPController {
// Fetch the users as LDAP objects // Fetch the users as LDAP objects
const users = await this.User.ldap_directory() const users = await this.User.ldap_directory()
this.output.debug(`Searching ${users.length} users...`)
this.output.debug(`Request DN: ${req.dn}`)
this.output.debug(`Filter:`)
this.output.debug(req.filter)
for ( const user of users ) { for ( const user of users ) {
// Make sure the user is of appropriate scope // Make sure the user is of appropriate scope