diff options
author | Rob Crittenden <rcritten@redhat.com> | 2009-02-27 15:04:46 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-02-27 23:18:19 -0500 |
commit | be0cac932af73fa1bcc5a64af9f2edde0c71cdc7 (patch) | |
tree | 46c121aceb0567c5208ec7b2da41d0230ef3dcc2 /ipalib/errors2.py | |
parent | 1359618e7ee335b0721fbcd9705608ef09158e3b (diff) | |
download | freeipa.git-be0cac932af73fa1bcc5a64af9f2edde0c71cdc7.tar.gz freeipa.git-be0cac932af73fa1bcc5a64af9f2edde0c71cdc7.tar.xz freeipa.git-be0cac932af73fa1bcc5a64af9f2edde0c71cdc7.zip |
Update objectclasses for groups, by default not posix groups.
This change depends on DS bugs 487574 and 487725. Groups cannot be
promoted properly without these fixed. It will fail with an
Object Class violation because gidNumber isn't set.
Diffstat (limited to 'ipalib/errors2.py')
-rw-r--r-- | ipalib/errors2.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ipalib/errors2.py b/ipalib/errors2.py index c80edf02..260a51e8 100644 --- a/ipalib/errors2.py +++ b/ipalib/errors2.py @@ -726,6 +726,22 @@ class RequiresRoot(ExecutionError): errno = 4006 format = _('This command requires root access') +class AlreadyPosixGroup(ExecutionError): + """ + **4007** Raised when a group is already a posix group + + For example: + + >>> raise AlreadyPosixGroup + Traceback (most recent call last): + ... + AlreadyPosixGroup: This is already a posix group + + """ + + errno = 4007 + format = _('This is already a posix group') + class BuiltinError(ExecutionError): """ **4100** Base class for builtin execution errors (*4100 - 4199*). |