Re: [Exim] Colon in PW & SMTP AUTH

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: ian
Data:  
Para: exim-users
Asunto: Re: [Exim] Colon in PW & SMTP AUTH
On Thu, Jan 10, 2002 at 02:38:23AM -0700, ian wrote:
> On Wed, Jan 09, 2002 at 09:41:04PM +0000, Philip Hazel wrote:
> > On Wed, 9 Jan 2002, Tamas TEVESZ wrote:
> >
> > >  >         server_condition = "${if pam{$1:$2}{1}{0}}"

> > >
> > > this is the problem. after expansion it'll look like:
> > >
> > > ${if pam{usernev:pass:word}{1}{0}}
> > >
> > > which would be wrong, quite obviously (did a little research with exim
> > > -be and fixed strings as arguments, and this is what it shows)
> > >
> > > no idea how to circumvent it, though. i tried several wild guesses
> > > now, but none of them works...
> >
> > The solution is to write, instead of $2
> >
> > ${sg{$2}{:}{::}}
>
> I'm still working on how to understand how to use the -be for testing.
>
> However in the mean time..
>
> I'm still having difficulty. That ${sg} fixed the : in the password but
> I have noticed that if there is a $ in the password it doesn't work either.
>
> example pw: $iguy:iguy
>


*sheepishly looks around* Never mind..

On a better note (this should probably get added to the doc pages for
authentication...) Here's my working PAM AUTH LOGIN for Outlook 2000 (at
least at a minimum for testing.

fixed_login:
        driver = plaintext
        public_name = LOGIN
        server_prompts = "Username:: : Password::"
        server_condition = "${if pam{$1:${sg{$2}{:}{::}}}{1}{0}}"


# PAM Authentication

        server_set_id = $1



Thank you for all your help guys.

ian