On Wed, 2002-12-04 at 19:24, Peter J Slot wrote:
> > I might remember incorrectly but I think the cyrus/midgard
> > authentication was handled by the sasl module. though I have not tested
> > if updating cyrus to a "normal" version would work.

Nope, Peter is right:
> 
> Which version are you refering to?
> The version using the 1.5x cyrusimap server?
> 
> http://www.hklc.com/projects/258.html describes the idea of the integration.
> 
> pwcheck_midgard.c
> seems to connect to mysql and compare passwords:
> ---
> /* pwcheck_mysql - Uses a MySql database to authenticate a Cyrus IMAP user */
> /* $Id: pwcheck_mysql.c,v 1.2 2000/03/10 18:28:49 anewsome Exp $ */
> ...
> #define QUERY_STRING "select password from person where username = '%s' and sitegroup
> = 0%s "
>  ...
> ---

but,

> 
> This seems to be an extension to "unix_pwcheck".

it is an extension to mysql_pwcheck.

However, the codebase of cyrus has changed quite drastically, and 2.x.x
versions seem to require sasl to be used. There is a mysql
authentication plugin for sasl in the current code-base, but it will
need patches in order to allow users to log in with <user>:<sitegroupno>
The nature of the patch will be equivalent to the one Peter mentioned.

wkr,
 
-- 
Envida                     http://www.envida.net/
Armand A. Verstappen       Graadt van Roggenweg 328
[EMAIL PROTECTED]       3531 AH Utrecht
tel: +31 (0)30 298 2255    Postbus 19127
fax: +31 (0)30 298 2111    3501 DC Utrecht

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to