On Tue, May 17, 2011 at 07:47:50PM +0200, Bret S. Lambert wrote:
> On Tue, May 17, 2011 at 10:42:06AM -0600, Gilles Chehade wrote:
> > CVSROOT:    /cvs
> > Module name:        src
> > Changes by: [email protected]  2011/05/17 10:42:06
> > 
> > Modified files:
> >     usr.sbin/smtpd : smtpd.c smtpd.h 
> >     usr.sbin/smtpd/smtpd: Makefile 
> > Added files:
> >     usr.sbin/smtpd : auth_backend.c 
> > Removed files:
> >     usr.sbin/smtpd : authenticate.c 
> > 
> > Log message:
> > smtpd now uses an auth_backend API to authenticate users that are allowed
> > to send mail so they do not necessarily need a local system account.
> > 
> > two backends are provided by default, bsd_auth(3) and getpwnam(3), however
> > smtpd will only select bsd_auth(3) for the moment and not provide a way to
> > chose any other backend (that's on purpose ;p).
> > 
> > bye bye authenticate() !
> > 
> 
> So does this mean you could keep your own, non-system set of unix-style
> password files to authenticate against? That would be pretty useful.

yes it means just that ;-)

there is only one thing missing before smtpd knows how to use custom auth
backends: making parse.y and struct listener aware of the chosen backend.

Gilles

-- 
Gilles Chehade
http://www.poolp.org

Reply via email to