This commit is contained in:
parent
6b2257ae33
commit
bd6eaceaf3
@ -26,11 +26,8 @@ class SudoController extends LDAPController {
|
|||||||
return next(new LDAP.InsufficientAccessRightsError())
|
return next(new LDAP.InsufficientAccessRightsError())
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('[SUDO SEARCH]', req.filter.toString())
|
|
||||||
const sudo_hosts = this.parse_sudo_hosts(req.filter)
|
const sudo_hosts = this.parse_sudo_hosts(req.filter)
|
||||||
console.log('[SUDO HOSTS]', sudo_hosts)
|
|
||||||
const iam_targets = await this.get_targets_from_hosts(sudo_hosts)
|
const iam_targets = await this.get_targets_from_hosts(sudo_hosts)
|
||||||
console.log('[SUDO IAM]', iam_targets)
|
|
||||||
|
|
||||||
if ( req.scope === 'base' ) {
|
if ( req.scope === 'base' ) {
|
||||||
// If scope is base, check if the base DN matches the filter.
|
// If scope is base, check if the base DN matches the filter.
|
||||||
|
Loading…
Reference in New Issue
Block a user