diff options
author | Martin Kosek <mkosek@redhat.com> | 2012-12-19 15:38:52 +0100 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-12-19 16:32:15 +0100 |
commit | 86e56b91257efa8d7c8a388f2a8a14d0adf367e5 (patch) | |
tree | cc3009d726b580f47ab22f86585944e134c1eec1 /ipalib | |
parent | e8cb869046f7ad9e9621188415a9e2b2de9ab577 (diff) | |
download | freeipa-86e56b91257efa8d7c8a388f2a8a14d0adf367e5.tar.gz freeipa-86e56b91257efa8d7c8a388f2a8a14d0adf367e5.tar.xz freeipa-86e56b91257efa8d7c8a388f2a8a14d0adf367e5.zip |
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
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/plugins/aci.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/aci.py b/ipalib/plugins/aci.py index 7d5bf504c..702ae0101 100644 --- a/ipalib/plugins/aci.py +++ b/ipalib/plugins/aci.py @@ -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']: |