Todd C. Miller
71e98d9493
Include parse.h in sudoers.h since it will soon be required.
2018-05-14 09:05:02 -06:00
Todd C. Miller
f53e5e2bdf
Fix compilation error with older Sun Studio compilers.
2018-04-24 16:40:16 -06:00
Todd C. Miller
6f66216441
Avoid false positive NULL dereference by uses value.u.string
...
instead of name as the former is guaranteed not to be NULL.
Fixes CID 183465.
2018-03-29 18:53:50 -06:00
Todd C. Miller
8a237eb07d
Add cvtsudoers command line option to suppress certain parts of the
...
security policy. Can be used to suppress displaying of Defaults
entries, aliases or privileges.
2018-03-22 11:38:39 -06:00
Todd C. Miller
bdbd102c9c
Fix crash when converting sudoers entry with a runas list that is
...
present but empty.
2018-03-06 12:00:37 -07:00
Todd C. Miller
5999cfb906
Add support for setting default options in a config file. In
...
addition to expand_aliases, input_format and output_format, both
the initial sudoOrder and the increment when updating sudoOrder for
subsequent sudoRole objects can be specified. Command line options
have also been added for the start order and increment.
2018-02-24 09:23:14 -07:00
Todd C. Miller
ceea24b965
Initial support for parsing sudoers LDIF files in cvtsudoers.
...
This makes it possible to convert from LDAP sudoers to a traditional
sudoers file. Semantic differences between file sudoers and LDAP
sudoers mean that LDIF -> sudoers is not completely equivalent.
2018-02-22 09:53:12 -07:00
Todd C. Miller
c13557b6cb
Fix gcc false positive for uninitialized variable
2018-02-21 21:02:36 -07:00
Todd C. Miller
4f9296928c
Add option to cvtsudoers to expand aliases in the output.
2018-02-19 15:32:56 -07:00
Todd C. Miller
3f204c5eb8
Fix conversion of "ALL" in the JSON output format, which was being
...
printed as an alias.
2018-02-19 13:39:11 -07:00
Todd C. Miller
7dd620981b
Add notbefore and notafter support to the backends.
2018-01-28 07:09:22 -07:00
Todd C. Miller
cc31b3fd40
Parse sudoers in the front end, not the back end.
2018-01-26 17:29:56 -07:00
Todd C. Miller
02d917e602
Rename export_sudoers() to convert_sudoers_json() and move the
...
check for the same input and output file to the front-end.
2018-01-26 12:28:49 -07:00
Todd C. Miller
80cb1b5da9
Move sudoers JSON conversion to cvtsudoers which will eventually
...
output to other formats too.
2018-01-26 11:20:37 -07:00