[PATCH] removal of pdb_context, fallback to RID 513 for primary group, cleanup of pdb_tdb.c

Jeremy Allison jra at samba.org
Sat Feb 11 20:58:15 GMT 2006


On Sat, Feb 11, 2006 at 08:25:23AM -0600, Gerald (Jerry) Carter wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> 
> Cleanup and removal of the odb_context data structure.  This means
> that we will no longer support chaining passdb backends.  This patch
> also replaces the guest passdb backend with a simple internal creation
> of the guest SAM_ACCOUNT.

Please, please check this in ! I love all the '--' on the context
stuff :-) :-).

> primary_group.patch, domain_users
> =================================
> 
> Probably the more controversial portion of the patch.  Granted this
> was an experiment.  Given the results from testing against standalone
> Windows servers, the RID 513 always resolves.  This patch does 2 things.
> First ensures that this RID always resolves.  Secondly, it sets
> the primary group membership of a user to be S-1-5-....-513 if the
> currently assigned primary group cannot be successfully be mapped to
> a Unix gid.
> 
> 
> pdb_tdb.patch
> =============
> 
> Move tdbsam to a single TDB_CONTEXT* rather than open close on a per
> query basis.  Since a tdb can only be open once per process, the current
> method does not work with recursion.

Only problem with this is possibility for problems on crash/abnormal
termination. If we go this route we need to look seriously at the
transactional tdb code from Samba4, or add an idle event handler that
closes this db.

Jeremy.


More information about the samba-technical mailing list