[Samba] rid generation questions

TAKAHASHI Motonobu monyo at monyo.com
Tue Sep 6 11:28:26 MDT 2011

Please CC to the list.

From: steffo76 at gmx.de
Date: Mon, 05 Sep 2011 19:41:16 +0200

> > If you want to use old way, you have to use 'old' passdb such as
> > smbpasswd or ldapsam_compat instead of ldapsam or tdbsam, although
> > they can not keep the detail information of users.
> OK,  so far so good. tdbsam is not an option. How does the RID
> generation work in 3.5.9 anyway - what is algorithmic rid base for ?

"algorithmic rid base" works only under 'old' passdb.

> Is this just the start value, the first RID that's being used ?

For the 'new' passdb such as ldapsam and tdbsam, the start value is
fixed at 1000.

> So on first startup sambaNextRid and 
> sambaNextUserRid get set to this value ? More importantly: How do I
> change these values without samba refusing to start, does Samba
> store the initial Value for sambaAlgorithmicRidBase in secrets.tdb ?

AFAIK, no official method is available. You are using ldapsam, so you
may change the start values to change attributes correctly by
modifiying LDAP directory directly.

TAKAHASHI Motonobu <monyo at samba.gr.jp>

More information about the samba mailing list