summaryrefslogtreecommitdiffstats
path: root/ipa-python
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2007-11-30 12:49:08 -0500
committerRob Crittenden <rcritten@redhat.com>2007-11-30 12:49:08 -0500
commitbac556557d892966aaea2101d8c8207e471fda05 (patch)
treece291f8d8dfec5dd78a85a6e65cad5c0647d3f5d /ipa-python
parent72595ab1a50926fec23597b31db0dce31de6e5ff (diff)
downloadfreeipa-bac556557d892966aaea2101d8c8207e471fda05.tar.gz
freeipa-bac556557d892966aaea2101d8c8207e471fda05.tar.xz
freeipa-bac556557d892966aaea2101d8c8207e471fda05.zip
Don't allow the admins or editors groups to be removed.
Don't allow the default group for users to be removed.
Diffstat (limited to 'ipa-python')
-rw-r--r--ipa-python/ipaerror.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/ipa-python/ipaerror.py b/ipa-python/ipaerror.py
index 5391b3fd4..2f9a98363 100644
--- a/ipa-python/ipaerror.py
+++ b/ipa-python/ipaerror.py
@@ -162,3 +162,18 @@ CONNECTION_UNWILLING = gen_error_code(
CONNECTION_CATEGORY,
0x0004,
"Account inactivated. Server is unwilling to perform.")
+
+#
+# Configuration errors
+#
+CONFIGURATION_CATEGORY = 0x0004
+
+CONFIG_REQUIRED_GROUPS = gen_error_code(
+ CONFIGURATION_CATEGORY,
+ 0x0001,
+ "The admins and editors groups are required.")
+
+CONFIG_DEFAULT_GROUP = gen_error_code(
+ CONFIGURATION_CATEGORY,
+ 0x0002,
+ "You cannot remove the default users group.")