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/plugins/baseldap.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/plugins/baseldap.py')
-rw-r--r-- | ipalib/plugins/baseldap.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py index 923a019dd..1e71a64f4 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'), |