summaryrefslogtreecommitdiffstats
path: root/ipa-python/ipaerror.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-03-17 14:09:44 -0400
committerRob Crittenden <rcritten@redhat.com>2008-03-17 14:09:44 -0400
commite54a16ae1ce45af4c250dbbbb13893b9a8dc2190 (patch)
tree0b9a82f37fcc275d74113fd907e38354b59c131c /ipa-python/ipaerror.py
parentc3fedca013cebc29ac9e162c7a59db1a96c2a30a (diff)
downloadfreeipa-e54a16ae1ce45af4c250dbbbb13893b9a8dc2190.tar.gz
freeipa-e54a16ae1ce45af4c250dbbbb13893b9a8dc2190.tar.xz
freeipa-e54a16ae1ce45af4c250dbbbb13893b9a8dc2190.zip
Allow the realm to be included in the name passed to add_service_principal()
This is more kerberos-like and it doesn't hurt anything, we just won't allow realms other than our own to be used. 437566
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 767344b1e..256c87891 100644
--- a/ipa-python/ipaerror.py
+++ b/ipa-python/ipaerror.py
@@ -158,6 +158,11 @@ INPUT_MALFORMED_SERVICE_PRINCIPAL = gen_error_code(
0x0005,
"The requested service principal is not of the form: service/fully-qualified host name")
+INPUT_REALM_MISMATCH = gen_error_code(
+ INPUT_CATEGORY,
+ 0x0006,
+ "The realm for the principal does not match the realm for this IPA server.")
+
#
# Connection errors
#