diff --git a/app/ldap/controllers/Sudo.controller.js b/app/ldap/controllers/Sudo.controller.js index 958e855..9eb77de 100644 --- a/app/ldap/controllers/Sudo.controller.js +++ b/app/ldap/controllers/Sudo.controller.js @@ -107,7 +107,7 @@ class SudoController extends LDAPController { parse_sudo_hosts(filter, target_hosts = []) { if ( Array.isArray(filter?.filters) ) { for ( const sub_filter of filter.filters ) { - target_hosts = [...target_hosts, ...this.parse_iam_targets(sub_filter)] + target_hosts = [...target_hosts, ...this.parse_sudo_hosts(sub_filter)] } } else if ( filter?.attribute ) { if ( filter.attribute === 'sudohost' ) {