CVS update: samba/source/nsswitch

Andrew Bartlett abartlet at
Sun Mar 14 23:25:10 GMT 2004

On Sun, Mar 14, 2004 at 10:24:19AM +0000, vlendec at wrote:
> Date:	Sun Mar 14 10:24:19 2004
> Author:	vlendec
> Update of /data/cvs/samba/source/nsswitch
> In directory
> Modified Files:
> 	wb_client.c wbinfo.c winbindd.c winbindd_nss.h winbindd_sid.c 
> Log Message:
> Add and delete aliases via srv_samr_nt. For that I added a RID allocation call
> to winbindd. idmap_allocate_rid wants information about whether this will be a
> user or a group, I did not export this to the winbind interface.
> The reason for idmap to get that info is to keep consistent with the
> algorithmic convention to alloc only even rids for users and odd rids for
> groups. I'm not fully convinced that this really gains us anything. Any real
> good arguments?

The main argument I have for it is convention.  Now, this isn't
partiuclarly strong, but I would suggest that users expect that if
they modify 'idmap uid', that it only affects users (be that domain
users, or some similar concept like the free RIDs being used here).
Likewise, if would be good if the same applied to idmap gid - it only
affects groups, and group rids.

That is kind of a weak argument, but I think it is a convention worth

Now, what I really wish is that new sites would set their 'algorithmic
rid base' high enough that we could just use the rid space 'below' the
algorithmic RIDs, and not worry about this tom-foolery.

But i want to say a *big* thankyou for doing all this, it is great to
see this finally moveing!

Andrew Bartlett

More information about the samba-technical mailing list