CVS update: samba/source/passdb

Jeremy Allison jra at samba.org
Sun Sep 30 03:27:15 EST 2001


On Sat, Sep 29, 2001 at 07:05:40AM -0700, abartlet at samba.org wrote:
> 
> Date:	Sat Sep 29 07:05:39 2001
> Author:	abartlet
> 
> Update of /data/cvs/samba/source/passdb
> In directory va:/tmp/cvs-serv18919/passdb
> 
> Modified Files:
>       Tag: SAMBA_2_2
> 	passdb.c 
> Log Message:
> I don't normally commit to 2.2, but I'll get this mess at least slightly fixed
> up.
> 
> The real fix for all of this is in HEAD, but this will allow adding users again
> and settle the farm back down.

This is ok, thanks. I'll be checking it with insure as
part of the regression testing.

The passdb interface is rather broken (as I was discussing
with Gerry yesterday). Once 2.2.2 is out and I have some
free time I'm going to fix this up correctly.

The pdb_init_sam() call really needs to be removed, and
so that it can naturally be used as : pdb_getsampwnam()
pdb_getsampwent(), all of which return a malloced struct
which needs to be pdb_free_sam()'ed afterwards.

What I'd like is a malloc'ed style interface which looks
similar to getpwent()/setpwent()/endpwent() with the
addition of a freepwent() (the standard calls don't 
return malloced memory).

That would make the sam password database very natural
to use for POSIX programmers.

Jeremy.




More information about the samba-cvs mailing list