Re: sudo 1.9.5p2 ignores NOPASSWD rules

"Todd C. Miller" <[email protected]> Fri, 29 Jan 2021 04:53:24 -0700
Newsgroups gmane.comp.tools.sudo.user
Message-ID <[email protected]>
On Fri, 29 Jan 2021 08:31:28 +0000, Ralph Meier wrote:

> After resolving some syncing issues of our LDAP servers I found there is a se
> cond rule:
>
> LDAP Role: os_viocheck_xxxde
>     RunAsUsers: root
>     Options: !authenticate
>     Commands:
>         ALL
>
> LDAP Role: os_all_allch
>     RunAsUsers: ALL
>     Commands:
>         ALL
>
> Does this second rule without "!authenticate" overwrite the previous one beca
> use
> they are just evaluated in the order the ldap server delivers them ? Is there
>  a way to
> priorize a rule ?

Yes, the second rule is overriding the first one.  You can use the
sudoOrder attribute to indicate priority.  Rules are evaluated
sorted by sudoOrder so higher value rules are evaluated later.

See the sudoers.ldap manual for more info.

 - todd
____________________________________________________________
sudo-users mailing list <[email protected]>
For list information, options, or to unsubscribe, visit:
https://www.sudo.ws/mailman/listinfo/sudo-users