diff options
author | Pavel Březina <pbrezina@redhat.com> | 2014-07-14 14:23:50 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-07-15 16:45:05 +0200 |
commit | 7c30e60c525ea798aaab142766ff00eef4b5df3b (patch) | |
tree | bcdc35e2f57f49c416dca6d14400e333dd95a7a8 /src/config/SSSDConfig/__init__.py.in | |
parent | b3f56d9e4bd065590383eb1f812a3b77e3c56f24 (diff) | |
download | sssd-7c30e60c525ea798aaab142766ff00eef4b5df3b.tar.gz sssd-7c30e60c525ea798aaab142766ff00eef4b5df3b.tar.xz sssd-7c30e60c525ea798aaab142766ff00eef4b5df3b.zip |
sudo: fetch sudoRunAs attribute
This attribute was used in pre 1.7 versions of sudo and it is now
deprecated by sudoRunAsUser and sudoRunAsGroup. However, some users
still use this attribute so we need to support it to ensure backward
compatibility.
This patch makes sure that this attribute is downloaded if present and
provided to sudo. Sudo than decides how to handle it.
The new mapping option is not present in a man page since this
attribute is deprecated in sudo for a very long time.
Resolves:
https://fedorahosted.org/sssd/ticket/2212
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/config/SSSDConfig/__init__.py.in')
-rw-r--r-- | src/config/SSSDConfig/__init__.py.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config/SSSDConfig/__init__.py.in b/src/config/SSSDConfig/__init__.py.in index d9b186f73..439378ff8 100644 --- a/src/config/SSSDConfig/__init__.py.in +++ b/src/config/SSSDConfig/__init__.py.in @@ -354,6 +354,7 @@ option_strings = { 'ldap_sudorule_host' : _('Sudo rule host attribute'), 'ldap_sudorule_user' : _('Sudo rule user attribute'), 'ldap_sudorule_option' : _('Sudo rule option attribute'), + 'ldap_sudorule_runas' : _('Sudo rule runas attribute'), 'ldap_sudorule_runasuser' : _('Sudo rule runasuser attribute'), 'ldap_sudorule_runasgroup' : _('Sudo rule runasgroup attribute'), 'ldap_sudorule_notbefore' : _('Sudo rule notbefore attribute'), |