Sudorule RunAsUser should work with external groups

https://fedorahosted.org/freeipa/ticket/4600

Reviewed-By: Tomas Babej <tbabej@redhat.com>
This commit is contained in:
Martin Kosek 2014-10-02 10:31:42 +02:00 committed by Petr Viktorin
parent 3eca0ff2fe
commit 3b8a7883de

View File

@ -792,8 +792,8 @@ class sudorule_add_runasuser(LDAPAddMember):
failed=failed,
completed=0,
memberattr='ipasudorunas',
membertype='user',
externalattr='ipasudorunasextuser',
membertype='group',
externalattr='ipasudorunasextusergroup',
)
return (completed + completed_ex_users + completed_ex_groups, dn)