mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
Initial support for adding comments that will be emitted when
sudoers is formatted. Currently adds a comment for the source sudoRole when converting from ldif -> sudoers.
This commit is contained in:
@@ -461,6 +461,7 @@ sudo_ldap_role_to_priv(const char *cn, void *hosts, void *runasusers,
|
||||
handled = false;
|
||||
}
|
||||
if (!handled && warnings) {
|
||||
/* XXX - callback to process unsupported options. */
|
||||
if (val != NULL) {
|
||||
sudo_warnx(U_("unable to convert sudoOption: %s%s%s"), var, op == '+' ? "+=" : op == '-' ? "-=" : "=", val);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user