summaryrefslogtreecommitdiffstats
path: root/ipa-python/ipaerror.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-04-04 17:41:32 -0400
committerRob Crittenden <rcritten@redhat.com>2008-04-04 17:41:32 -0400
commitac5a35086ec2c57ca36a6b746734add51cdb74dd (patch)
treef11233cb84d99da31412d8ab727072ac5971216a /ipa-python/ipaerror.py
parentcb4648a8af0cc3298e59fa65f8b42c79524647bc (diff)
downloadfreeipa-ac5a35086ec2c57ca36a6b746734add51cdb74dd.tar.gz
freeipa-ac5a35086ec2c57ca36a6b746734add51cdb74dd.tar.xz
freeipa-ac5a35086ec2c57ca36a6b746734add51cdb74dd.zip
Don't allow the admin user to be removed from the admins group.
439281
Diffstat (limited to 'ipa-python/ipaerror.py')
-rw-r--r--ipa-python/ipaerror.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ipa-python/ipaerror.py b/ipa-python/ipaerror.py
index d96ebb1c3..4f641f984 100644
--- a/ipa-python/ipaerror.py
+++ b/ipa-python/ipaerror.py
@@ -173,6 +173,11 @@ INPUT_CANT_INACTIVATE = gen_error_code(
0x0008,
"This entry cannot be inactivated.")
+INPUT_ADMIN_REQUIRED_IN_ADMINS = gen_error_code(
+ INPUT_CATEGORY,
+ 0x0009,
+ "The admin user cannot be removed from the admins group.")
+
#
# Connection errors
#