On Wed, Jan 23, 2002 at 03:09:08PM -0200, Adriano Nagelschmidt Rodrigues wrote:
> Adriano Nagelschmidt Rodrigues writes:
> > If auth_imap were made to exec imaplogin if the login failed (and the
> > AUTH* env vars existed) we would have consistent behaviour and would
> > save the extra exec. What do you think? I don't know how the other
> > imap daemons interact with auth_imap...
>
> I just noticed that the code is already there. The one liner below
> fixes part of the problem...
>
At the moment I do not have the time to verify your patch. I implemented
auth_imap with some docu (manpage I think) of courier-imap. First of all
it was long time ago and probably courier-imap changed his behaviour and
then it is possible that I missinterpreted something.
When I find the time I will hava a closer look at it (unless somebody else
would like to do the job (: ).
> --- auth_imap.c.ori Wed Jan 23 11:38:01 2002
> +++ auth_imap.c Wed Jan 23 14:31:43 2002
> @@ -339,7 +339,7 @@
>
> log(2, "warning: auth_error: authorization failed (%s)\n",
> qldap_err_str(qldap_errno) );
> - if (! (env = env_get("ARGC") ) ) {
> + if (! (env = env_get("AUTHARGC") ) ) {
> _exit(111);
> }
> scan_ulong(env, &numarg);
>
>
--
:wq Claudio
tail -23 QLDAPINSTALL