This is a discussion on [courier-users] Re: Splitting out PRE from AUTH within the Courier-Imap forums, part of the Mail Servers and Related category; Johnny Lam wrote: > > I'm wondering if there is any interest in separating the > "authentication" ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Johnny Lam wrote:
> > I'm wondering if there is any interest in separating the > "authentication" in courier-authlib into two parts -- "auth" and > "account"? The "AUTH" and "PASSWD" messages would go to "auth" modules, > and the "PRE" and "ENUMERATE" messages would go to "account" modules. > The changes involved would be: > > (1) Modify the "AUTH" protocol to return "SUCCESS" instead of the result > of a "PRE" request upon sucessfully authenticating a user/password > combination. > > (2) Modify the auth_<type>() functions in each backend module to not > return auth_<type>_pre(...) but rather just 1 or 0 depending on > whether the user/password combination is good or not. Apologies for the noise. I didn't read the source code carefully enough and I see that this plan can't work, especially in the case where CRAM is used. I would still like to somehow separate the password verification from the account info queries, but I will work on this idea further before presenting again. Cheers, -- Johnny Lam <jlam@pkgsrc.org> ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users |