diff options
author | Petr Viktorin <pviktori@redhat.com> | 2013-01-08 04:10:35 -0500 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2013-03-11 17:07:07 +0100 |
commit | 91606e6679f3a18b1c1789efd240eed982a563d4 (patch) | |
tree | a002e8fbc837058f6c1d9178cbefadcd03b7d6f2 /ipalib/capabilities.py | |
parent | 8d432353cc1e66b235e928650764f879c24d19f7 (diff) | |
download | freeipa-91606e6679f3a18b1c1789efd240eed982a563d4.tar.gz freeipa-91606e6679f3a18b1c1789efd240eed982a563d4.tar.xz freeipa-91606e6679f3a18b1c1789efd240eed982a563d4.zip |
Change DNA magic value to -1 to make UID 999 usable
Change user-add's uid & gid parameters from autofill to optional.
Change the DNA magic value to -1.
For old clients, which will still send 999 when they want DNA
assignment, translate the 999 to -1. This is done via a new
capability, optional_uid_params.
Tests included
https://fedorahosted.org/freeipa/ticket/2886
Diffstat (limited to 'ipalib/capabilities.py')
-rw-r--r-- | ipalib/capabilities.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ipalib/capabilities.py b/ipalib/capabilities.py index 751b93e2b..6fcc436d5 100644 --- a/ipalib/capabilities.py +++ b/ipalib/capabilities.py @@ -35,6 +35,12 @@ capabilities = dict( # http://freeipa.org/page/V3/Messages messages=u'2.52', + # optional_uid_params: Before this version, UID & GID parameter defaults + # were 999, which meant "assign dynamically", so was not possible to get + # a user with UID=999. With the capability, these parameters are optional + # and 999 really means 999. + # https://fedorahosted.org/freeipa/ticket/2886 + optional_uid_params=u'2.54' ) |