diff options
author | Alexander Bokovoy <abokovoy@redhat.com> | 2014-08-19 16:24:27 +0300 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2014-09-01 08:42:52 +0200 |
commit | 90227f817eb27d0d4308b22f8dcf028dc2925689 (patch) | |
tree | bb15ce46363c7735b07e296d67b69997d06a7931 /ipalib | |
parent | d16b471ceaa59fceed3235c36536f6811bd5de8c (diff) | |
download | freeipa-90227f817eb27d0d4308b22f8dcf028dc2925689.tar.gz freeipa-90227f817eb27d0d4308b22f8dcf028dc2925689.tar.xz freeipa-90227f817eb27d0d4308b22f8dcf028dc2925689.zip |
ipaserver/dcerpc.py: Make sure trust is established only to forest root domain
Part of https://fedorahosted.org/freeipa/ticket/4463
Reviewed-By: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/errors.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ipalib/errors.py b/ipalib/errors.py index 14e052990..f0426583d 100644 --- a/ipalib/errors.py +++ b/ipalib/errors.py @@ -817,6 +817,22 @@ class DeprecationError(InvocationError): errno = 3015 format = _("Command '%(name)s' has been deprecated") +class NotAForestRootError(InvocationError): + """ + **3016** Raised when an attempt to establish trust is done against non-root domain + Forest root domain has the same name as the forest itself + + For example: + + >>> raise NotAForestRootError(forest='example.test', domain='jointops.test') + Traceback (most recent call last): + ... + NotAForestRootError: Domain 'jointops.test' is not a root domain for forest 'example.test' + """ + + errno = 3016 + format = _("Domain '%(domain)s' is not a root domain for forest '%(forest)s'") + ############################################################################## # 4000 - 4999: Execution errors |