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/plugins/baseldap.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ipalib/plugins/baseldap.py') diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py index 923a019d..1e71a64f 100644 --- a/ipalib/plugins/baseldap.py +++ b/ipalib/plugins/baseldap.py @@ -34,6 +34,8 @@ from ipalib.text import _ from ipalib.util import json_serialize, validate_hostname from ipapython.dn import DN, RDN +DNA_MAGIC = -1 + global_output_params = ( Flag('has_password', label=_('Password'), -- cgit