Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ncm-sudo: support all values for lecture option and the lecture_file option #1689

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ncm-sudo/src/main/pan/components/sudo/schema.pan
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ type sudo_default_options = {
"mail_no_host" ? boolean
"mail_no_perms" ? boolean
"tty_tickets" ? boolean
"lecture" ? boolean
# old boolean behaviour: true means once, false means never
"lecture" ? choice('always', 'once', 'never')
"lecture_file" ? absolute_file_path
"authenticate" ? boolean
"root_sudo" ? boolean
"log_host" ? boolean
Expand Down
3 changes: 2 additions & 1 deletion ncm-sudo/src/main/perl/sudo.pm
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ use constant BOOLEAN_OPTS => qw(
mail_no_host
mail_no_perms
tty_tickets
lecture
authenticate
root_sudo
log_host
Expand Down Expand Up @@ -124,6 +123,8 @@ use constant STRING_OPTS => qw(
verifypw
listpw
secure_path
lecture
lecture_file
);

# generate_aliases method
Expand Down
Loading