diff options
author | Rob Crittenden <rcritten@redhat.com> | 2010-09-29 13:51:41 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2010-10-01 13:38:52 -0400 |
commit | aac7badb773d575449eb7af589b1f505f7c66b52 (patch) | |
tree | 0c3134c23ca1f5213001c2cafbd33c71f4fd1778 /ipalib | |
parent | 3703062ab25a7817581eefa2f89214e8a6244bee (diff) | |
download | freeipa-aac7badb773d575449eb7af589b1f505f7c66b52.tar.gz freeipa-aac7badb773d575449eb7af589b1f505f7c66b52.tar.xz freeipa-aac7badb773d575449eb7af589b1f505f7c66b52.zip |
Remove reliance on the name 'admin' as a special user.
And move it to the group 'admins' instead. This way the admin user can
be removed/renamed.
ticket 197
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/plugins/user.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py index 607081300..53551898b 100644 --- a/ipalib/plugins/user.py +++ b/ipalib/plugins/user.py @@ -215,11 +215,6 @@ class user_del(LDAPDelete): msg_summary = _('Deleted user "%(value)s"') - def pre_callback(self, ldap, dn, *keys, **options): - if keys[-1] == 'admin': - raise errors.ExecutionError('Cannot delete user "admin".') - return dn - def post_callback(self, ldap, dn, *keys, **options): self.log.info('IPA: %s "%s"' % (self.name, keys[-1])) return True |