mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Collect memberof information for sudo commands.
We weren't searching the cn=sudo container so all members of a sudocmdgroup looked indirect. Add a label for sudo command groups. Update the tests to include verifying that membership is done properly. ticket 1003
This commit is contained in:
committed by
Endi S. Dewata
parent
1770750b8a
commit
af9f905239
@@ -1002,6 +1002,14 @@ class ldap2(CrudBackend, Encoder):
|
||||
except errors.NotFound:
|
||||
pbacresults = []
|
||||
results = results + pbacresults
|
||||
try:
|
||||
(sudoresults, truncated) = self.find_entries(searchfilter,
|
||||
attr_list, 'cn=sudo,%s' % api.env.basedn,
|
||||
time_limit=time_limit, size_limit=size_limit,
|
||||
normalize=normalize)
|
||||
except errors.NotFound:
|
||||
sudoresults = []
|
||||
results = results + sudoresults
|
||||
|
||||
direct = []
|
||||
indirect = []
|
||||
|
||||
Reference in New Issue
Block a user