From aac7badb773d575449eb7af589b1f505f7c66b52 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Wed, 29 Sep 2010 13:51:41 -0400 Subject: 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 --- ipalib/plugins/user.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'ipalib/plugins/user.py') diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py index 60708130..53551898 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 -- cgit