Feasibility of using UID > 65535

Hello,

I need to port a legacy application from Solaris to FreeBSD, heavily dependant on large UIDs. In Solaris, UID can be
up to 2147483647.

In regards to User ID, the Handbook states:

The User ID (UID) is a number used to uniquely identify the user to the FreeBSD system. Commands that allow a user name to be specified will first convert it to the UID. It is recommended to use a UID less than 65535, since higher values may cause compatibility issues with some software.

How likely is the cited "compatibility issues with some software" aspect?

Can somebody offer some real-world examples where using large UID caused problems?

In respects to pure FreeBSD userland, would one be safe in using UID > 65535? If so, what would then be the upper limit for UID?

Thank you in advance for any clarification.
 
uid_t is the same size on FreeBSD as is on Solaris (unsigned integer, 4B). The handbook is only recommending to use lower UID to avoid possible issues with other SW, such as LDAP.
As an example imagine you create a local user with uid 400666, you join the system to AD and there will be a remote user with the same UID.
But it's not the limit of the uid_t itself.
 
Back
Top