On 13 Dec 07, Rick Widmer wrote:
> Luciano Bolonheis wrote:
> >Hi,
> >i installed vpopmail on a server and now other person wants to
> >authenticate a software he is developing in the vpopmail database. He
> >is coding in Java.
> >Can anyone tell me how can he do it ? The function to use, or the
> >method used by vpopmail...
> It depends on which back end you are using.  If it is a sql database 
> like mysql or posgresql use Java to connect to the database.  If you are 
> using the cdb back end use Class Cdb:
> http://www.strangegizmo.com/products/sg-cdb/doc/com/strangegizmo/cdb/Cdb.html
> In general idea is to just access the database directly and check the 
> password either in the query, or looking at the returned data.

I would prefer to use password checking from vpopmail like you do with
qmail if it is possible:

 /var/qmail/bin/qmail-smtpd /var/vpopmail/bin/vchkpw /bin/true

So you software will not depend on the backend you are using or any
other changes.



Reply via email to