2
0
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:
Todd C. Miller
2018-03-04 07:03:43 -07:00
parent 670d8e6d77
commit 5c36f9dec3
13 changed files with 224 additions and 73 deletions

View File

@@ -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 {