Files
freeipa/ipaserver/plugins
Antonio Torres d6c5a92609 sudocmd: ensure command doesn't contain trailing dot before adding it
Trailing dots aren't permitted in sudo commands, as
enforced explicitly in `get_dn`. Performing this check
before adding the command prevents the user from
entering invalid commands, which would otherwise trigger
errors when accessing them afterwards.

RN: ipa sudocmd-* commands now validate SUDO command name to not end with a dot.
RN: Previously a trailing dot was stripped away in when addressing a SUDO command's LDAP object.
RN: As a result, a SUDO command was created but it was not possible to refer to it in other IPA commands.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1925410
Signed-off-by: Antonio Torres <antorres@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
2021-02-15 09:59:41 +02:00
..
2010-12-20 17:19:53 -05:00
2017-03-27 19:08:26 +02:00
2020-07-07 10:07:48 -04:00
2018-01-09 07:53:28 +01:00
2021-01-29 13:37:36 -05:00
2019-10-21 18:01:32 +11:00
2019-03-28 00:21:00 +01:00
2020-06-15 22:44:42 +03:00
2020-03-31 09:21:37 +03:00
2020-09-23 14:49:15 +02:00
2018-01-09 07:53:28 +01:00
2020-05-05 10:42:46 +02:00
2020-05-05 10:42:46 +02:00
2020-06-15 22:44:42 +03:00
2019-03-28 00:21:00 +01:00