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

Petr Viktorin pviktori at redhat.com
Fri Feb 22 10:16:09 UTC 2013


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.

-- 
Petr³




More information about the Freeipa-devel mailing list