Hello
we use LDAP with sudoers about 4 years. Works fine. But we have one problem with members of the admingroup (wheel). This users can do every command with sudo and with there privat password. But when they also are member to another special group, like sysadmin:
Sysadmin is allowed to use the commands, systemctl, reboot, shutdown, and a couple of other commands without password.
They must nevertheless always enter their password.
The goal is that admins they are in the wheelgroup and also members from some other sudogroups, they can execute there commands without password. Is this possible in LDAP?
Here some config:
cn=defaults
dn cn=defaults,ou=SUDOers,ou=Anwendungen,dc=osit,dc=cc
cn defaults
description sudoOption's
objectClass sudoRole
sudoOption !root_sudo
!lecture
log_host
log_year
ignore_dot
passwd_tries=3
timestamp_timeout=5
passwd_timeout=1
authenticate
ignore_local_sudoers
cn=%wheel
dn cn=%wheel,ou=SUDOers,ou=Anwendungen,dc=osit,dc=cc
cn %wheel
description Superadmingroup
objectClass sudoRole
sudoCommand ALL
sudoHost ALL
sudoUser %wheel
cn=portage
dn cn=portage,ou=SUDOers,ou=Anwendungen,dc=osit,dc=cc
cn portage
description Mitglieder k�nnen auf allen Gentoos die Paketverwaltung bedienen.
objectClass sudoRole
sudoCommand /usr/bin/emerge
/usr/bin/eix
/usr/bin/revdep-rebuild
sudoHost ALL
sudoOption !authenticate
sudoUser %portage
The importand option here is !authenticate
. With this i can say "execute command without password".
Thanks a lot for helping!
Best Regards