On Tue, 2016-05-10 at 13:16 +0100, Gary Stainburn wrote:
> I currently have a fixed user name and password in my authenticators
> but would
> like to also have PAM authentication work too. Currently I have:
>
> begin authenticators
>
> PLAIN:
> driver = plaintext
> server_set_id = $auth2
> server_prompts = :
> server_condition = ${if and
> {{eq{$2}{secret1}}{eq{$3}{secret2}}}
> {yes}{no}}
>
----- 8< -----
> even though the correct user ID and password have been entered and
> Dovecot
> which is also using PAM accepts them for the IMAP side.
>
> One thing that seems odd is the use of $2 and $3 in the
> server_condition but
> $auth2 in the server_set_id
>
> Can anyone give any suggestions as to how to fix this please
>
Gary
Exim has a Dovecot connector which you may find easier to deal with (I
did.) This is off a working system (Ubuntu 14.04):
begin authenticators
dovecot_plain:
driver = dovecot
public_name = PLAIN
server_socket = /var/run/dovecot/auth-client
server_set_id = $auth1
dovecot_login:
driver = dovecot
public_name = LOGIN
server_socket = /var/run/dovecot/auth-client
server_set_id = $auth1
In /etc/dovecot/conf.d/10-master.conf
service auth {
...
# Enables Exim to authenticate using Dovecot
unix_listener auth-client {
mode = 0660
user = Debian-exim
}
Sorry I didn't answer your actual question!
Cheers
Jon
Blueloop Ltd
01460 271055
https://www.blueloop.net
Blueloop House, Ilchester Road, YEOVIL, BA21 3AA Registered England & Wales - 3981322