[OGo-Users] Cyrus Authentication Via OGo
Adam Tauno Williams
users@opengroupware.org
Mon, 13 Nov 2006 11:05:07 -0500
On Mon, 2006-11-13 at 15:41 +0100, Helge Hess wrote:
> On Nov 13, 2006, at 14:31, Adam Tauno Williams wrote:
> > Does anyone have Cyrus IMAPd authenticating against the OGo database?
> > It appears this should be possible via either saslauthd and
> > pam_pgsql or
> > using SQL auxprop. Doesn't InstantOGo do this?
> Yes, Instant-OGo does this. But don't ask me how ;-) I think its
> pam_pgsql.
There is a newer libpam-pgsql at
http://sourceforge.net/docman/?group_id=62198
With an /etc/pam_pgsql.conf of -
database = OGo
host = localhost
user = OGo
password = ***********
table = sasl_users
user_column = login
pwd_column = cmusaslsecretplain
pw_type = crypt
And a /etc/pam.d/cyrus of -
auth required pam_pgsql.so debug
account required pam_pgsql.so debug
Then -
cfsgroup:~ # testsaslauthd -u adam -p correctpassword -s cyrus
0: OK "Success."
cfsgroup:~ # testsaslauthd -u adam -p wrongpassword -s cyrus
0: NO "authentication failed"