summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-01-28 17:19:30 -0500
committerRob Crittenden <rcritten@redhat.com>2010-01-29 09:43:51 -0500
commite24812ee2d0e474a2146cb35cbcd49463bc77927 (patch)
treee625ba517eb419fed49166d8b58e6f00cd7a9b51
parentbf63cd30a6224f76ceeaacead57af557208fbb93 (diff)
downloadfreeipa-e24812ee2d0e474a2146cb35cbcd49463bc77927.tar.gz
freeipa-e24812ee2d0e474a2146cb35cbcd49463bc77927.tar.xz
freeipa-e24812ee2d0e474a2146cb35cbcd49463bc77927.zip
Remove group-specific password policy on group deletion
-rw-r--r--ipalib/plugins/group.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/ipalib/plugins/group.py b/ipalib/plugins/group.py
index cc949abfd..5fea41299 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)