From 91606e6679f3a18b1c1789efd240eed982a563d4 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Tue, 8 Jan 2013 04:10:35 -0500 Subject: 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 --- ipalib/capabilities.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ipalib/capabilities.py') 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' ) -- cgit