mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix delegation-find command --group handling
A wrong way of handling --group DN object caused Internal Error for this command. Fix that and also provide unit tests to avoid another regression. https://fedorahosted.org/freeipa/ticket/3311
This commit is contained in:
@@ -801,7 +801,7 @@ class aci_find(crud.Search):
|
||||
groupdn = a.bindrule['expression']
|
||||
groupdn = DN(groupdn.replace('ldap:///',''))
|
||||
try:
|
||||
cn = groupdn[0]['cn'].value
|
||||
cn = groupdn[0]['cn']
|
||||
except (IndexError, KeyError):
|
||||
cn = None
|
||||
if cn is None or cn != kw['group']:
|
||||
|
||||
Reference in New Issue
Block a user