diff options
author | Rob Crittenden <rcritten@redhat.com> | 2010-01-28 17:19:30 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2010-01-29 09:43:51 -0500 |
commit | e24812ee2d0e474a2146cb35cbcd49463bc77927 (patch) | |
tree | e625ba517eb419fed49166d8b58e6f00cd7a9b51 | |
parent | bf63cd30a6224f76ceeaacead57af557208fbb93 (diff) | |
download | freeipa-e24812ee2d0e474a2146cb35cbcd49463bc77927.tar.gz freeipa-e24812ee2d0e474a2146cb35cbcd49463bc77927.tar.xz freeipa-e24812ee2d0e474a2146cb35cbcd49463bc77927.zip |
Remove group-specific password policy on group deletion
-rw-r--r-- | ipalib/plugins/group.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ipalib/plugins/group.py b/ipalib/plugins/group.py index cc949abf..5fea4129 100644 --- a/ipalib/plugins/group.py +++ b/ipalib/plugins/group.py @@ -115,6 +115,14 @@ class group_del(LDAPDelete): raise errors.DefaultGroup() return dn + def post_callback(self, ldap, dn, *keys, **options): + try: + api.Command['pwpolicy_del'](group=keys[-1]) + except errors.NotFound: + pass + + return True + api.register(group_del) |