[Dovecot] Proxy, using checkpassword
Hi all, I think I may be doing something wrong but, is it possible to proxy POP and IMAP users when using a checkpassword script as the passdb?
I'm trying to write a perl script to handle authentication to a mix of SQL and POP3 sources whilst logging user passwords at the same time for a migration.
At the moment, I'm trying to set environment variables to tell dovecot what to do:
$ENV{'AUTHORIZED'} = 2; $ENV{'proxy'} = 'Y'; $ENV{'host'} = $pop_success;
Dovecot is logging the following:
Nov 27 10:35:01 pop3 dovecot: auth(default): client in: AUTH#0118#011PLAIN#011service=pop3#011lip=192.168.100.143#011rip=192.168.100.60#011lport=110#011rport=3051#011resp=AGFpcmJlYXIAcG9uZGFhcjM= Nov 27 10:35:01 pop3 dovecot: auth(default): checkpassword(airbear,192.168.100.60): execute: /var/run/dovecot/login/authomatic.pl /usr/libexec/dovecot/checkpassword-reply Nov 27 10:35:02 pop3 dovecot: auth(default): checkpassword(airbear,192.168.100.60): Received input: userdb_uid=0#011userdb_gid=0#011 Nov 27 10:35:02 pop3 dovecot: auth(default): checkpassword(airbear,192.168.100.60): Received no input Nov 27 10:35:02 pop3 dovecot: auth(default): checkpassword(airbear,192.168.100.60): exit_status=0 Nov 27 10:35:02 pop3 dovecot: auth(default): client out: OK#0118#011user=airbear Nov 27 10:35:02 pop3 dovecot: dovecot: User airbear is missing UID (see mail_uid setting) Nov 27 10:35:02 pop3 dovecot: auth(default): master in: REQUEST#0115#01116075#0118 Nov 27 10:35:02 pop3 dovecot: auth(default): master out: USER#0115#011airbear Nov 27 10:35:02 pop3 dovecot: pop3-login: Internal login failure (auth failed, 1 attempts): user=<airbear>, method=PLAIN, rip=192.168.100.60, lip=192.168.100.143
Thanks in advance, Aaron
Hi again, Scrap that, I am now getting along fine writing my response to file descriptor 4.
Thanks again, Aaron
-----Original Message----- From: dovecot-bounces+aroberts=domicilium.com@dovecot.org [mailto:dovecot-bounces+aroberts=domicilium.com@dovecot.org] On Behalf Of Aaron Roberts Sent: 27 November 2009 10:36 To: dovecot@dovecot.org Subject: [Dovecot] Proxy, using checkpassword
Hi all, I think I may be doing something wrong but, is it possible to proxy POP and IMAP users when using a checkpassword script as the passdb?
I'm trying to write a perl script to handle authentication to a mix of SQL and POP3 sources whilst logging user passwords at the same time for a migration.
At the moment, I'm trying to set environment variables to tell dovecot what to do:
$ENV{'AUTHORIZED'} = 2; $ENV{'proxy'} = 'Y'; $ENV{'host'} = $pop_success;
Dovecot is logging the following:
Nov 27 10:35:01 pop3 dovecot: auth(default): client in: AUTH#0118#011PLAIN#011service=pop3#011lip=192.168.100.143#011rip=192.168.100.60#011lport=110#011rport=3051#011resp=AGFpcmJlYXIAcG9uZGFhcjM= Nov 27 10:35:01 pop3 dovecot: auth(default): checkpassword(airbear,192.168.100.60): execute: /var/run/dovecot/login/authomatic.pl /usr/libexec/dovecot/checkpassword-reply Nov 27 10:35:02 pop3 dovecot: auth(default): checkpassword(airbear,192.168.100.60): Received input: userdb_uid=0#011userdb_gid=0#011 Nov 27 10:35:02 pop3 dovecot: auth(default): checkpassword(airbear,192.168.100.60): Received no input Nov 27 10:35:02 pop3 dovecot: auth(default): checkpassword(airbear,192.168.100.60): exit_status=0 Nov 27 10:35:02 pop3 dovecot: auth(default): client out: OK#0118#011user=airbear Nov 27 10:35:02 pop3 dovecot: dovecot: User airbear is missing UID (see mail_uid setting) Nov 27 10:35:02 pop3 dovecot: auth(default): master in: REQUEST#0115#01116075#0118 Nov 27 10:35:02 pop3 dovecot: auth(default): master out: USER#0115#011airbear Nov 27 10:35:02 pop3 dovecot: pop3-login: Internal login failure (auth failed, 1 attempts): user=<airbear>, method=PLAIN, rip=192.168.100.60, lip=192.168.100.143
Thanks in advance, Aaron
participants (1)
-
Aaron Roberts