[Freeipa-devel] [PATCH] 0186 Change DNA magic value to -1 to make UID 999 usable

Martin Kosek mkosek at redhat.com
Mon Mar 11 16:09:52 UTC 2013


On 02/22/2013 12:16 PM, Petr Viktorin wrote:
> On 02/22/2013 11:16 AM, Petr Viktorin wrote:
>> https://fedorahosted.org/freeipa/ticket/2886
>>
>> This changes the DNA magic value to -1, and the corresponding IPA's
>> parameters (gidnumber, uidnumber) to be optional (instead of autofill).
>>
>> Since the old clients still say "999" when they mean "pick one I don't
>> care", we need to detect them and change 999 to -1. For that there's a
>> new capability, optional_uid_params.
>>
>>
>> Behavior summary:
>>
>> With --uid 999:
>>    old client, old server: sends 999, creates random UID
>>    old client, new server: sends 999, creates random UID
>>    new client, old server: incompatible
>>    new client, new server: sends 999, creates UID 999
>>
>> Without --uid:
>>    old client, old server: sends 999, creates random UID
>>    old client, new server: sends 999, creates random UID
>>    new client, old server: incompatible
>>    new client, new server: doesn't send UID, creates random UID
>>
>> Upgrade should work fine.
>>
>> I didn't test winsync as I don't have a Windows machine.
>>
>
> The patch is here
>

Works like a charm for both old clients and the new ones.

ACK, pushed to master.

Martin




More information about the Freeipa-devel mailing list