[PATCH] change SAM DB (files,tdb,ldap,nisplus) in smb.conf

Gerald (Jerry) Carter jerry at samba.org
Sat Dec 29 10:02:07 GMT 2001


On Thu, 20 Dec 2001, Stefan Metzmacher wrote:

> Hello,
>
> I have a patch to change the samdb dynamicly in smb.conf with the parameter:
>
> sam database = files (default)
> sam database = tdb
> sam database = ldap
> sam database = nisplus

Stefan,

While I like the intent of the patch, I'm not going to apply it.
The reason is that having to redefine pdb_getsampwXX() to
handle a large switch() statement in order to deal with all
of the possible samdb backends is fairly awkward.

We need to move backto to a structure of function pointers and
then enable the various lookups by adding the structure to a list
of backend methods.  This should be done via shared libraries.
We just haven't sat down and done it yet.

Thanks again for the patch.  I'm looking at your other patch
now.







chau, jerry
 ---------------------------------------------------------------------
 Hewlett-Packard                                     http://www.hp.com
 SAMBA Team                                       http://www.samba.org
 --                                            http://www.plainjoe.org
 "Sam's Teach Yourself Samba in 24 Hours" 2ed.      ISBN 0-672-32269-2
 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--





More information about the samba-technical mailing list