[Samba] tested lowering default GID/UID failed. ( samba 4.1.7 ) ( minor BUG? )

L.P.H. van Belle belle at bazuin.nl
Wed Jun 4 08:14:48 MDT 2014

on the page here. 
I did read : 
Per default Active Directory starts assigning UIDs/GIDs both at 10000. 

You can change the next UID/GID that will be assigned. E. g. if you require to start UIDs at 20000 and GID at 50000, change the values on a Domain Controller: 
Ok, now im lowering the default from 10000 to 5000, but samba still shows still from 10000 when i want to assign a user/group id with windows tools.
After i assinged 1 group and 4 users the UID/GIDs i did check by use the command : 
ldbedit -H /usr/local/samba/private/sam.ldb -b CN=samdom,CN=ypservers,CN=ypServ30,CN=RpcServices,CN=System,DC=samdom,DC=example,DC=com
there were none of the following entries.  ( and/or no correct UID/GID numbers ) 

msSFU30MaxUidNumber: 20000 msSFU30MaxGidNumber: 50000 
So here, i added them myself and did set them to the new next uid/gids. 
Now its working as it shoud and the windows tools are also showing the correct next UID/GIDs 
So small bug imo when you lower and you did assing a user/group with an UID/GID it should be in the AD database. 
My work order. 
- install samba
- provisioning samba.
- changed the smb.conf to adapt the settings i used above. 
- started samba
- used ldbedit to change the start ID from 10000 to 5000 
- added groups to samba

- added users to samba
- assigned the first group with GID 5000  ( and the AD User manager showed 10000 ) 
- assigned the first users with UID 5000-5003  ( and the AD User manager showed 10000 on everyone i assigned ) 
If you want more info just ask. 


More information about the samba mailing list