diff options
Diffstat (limited to 'ipa-admintools/ipa-adddelegation')
-rw-r--r-- | ipa-admintools/ipa-adddelegation | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ipa-admintools/ipa-adddelegation b/ipa-admintools/ipa-adddelegation index b29c9671..e2254fd2 100644 --- a/ipa-admintools/ipa-adddelegation +++ b/ipa-admintools/ipa-adddelegation @@ -139,6 +139,14 @@ def main(): client.update_entry(aci_entry) + # Now add to the editors group so they can make changes in the UI + try: + group = client.get_entry_by_cn("editors") + client.add_group_to_group(new_aci.source_group, group.dn) + except ipa.ipaerror.exception_for(ipa.ipaerror.LDAP_EMPTY_MODLIST): + # This is ok, ignore it + pass + print "Delegation %s successfully added" % args[1] return 0 |