Re: [Dovecot] Password environment variable - logging the password

2009-06-07 Thread Donovan Craig
Timo Sirainen wrote: > Hmm. I guess it's possible that the password is lost by then.. Then > another possibility would be to use passdb sql + userdb prefetch and: > > password_query = SELECT .., '%w' as userdb_plain_pass, .. That did the trick. Thanks so much for your help.

Re: [Dovecot] Password environment variable - logging the password

2009-06-07 Thread Timo Sirainen
On Jun 6, 2009, at 4:04 PM, Donovan Craig wrote: user_query = SELECT '%w' as plain_pass, ... then it should be in $PLAIN_PASS environment in post-login script. This would be great if it worked, but unfortunately this %w is empty when I try to use it. Hmm. I guess it's possible that the pa

Re: [Dovecot] Password environment variable - logging the password

2009-06-06 Thread Donovan Craig
>> On Jun 6, 2009, at 5:19 AM, Donovan Craig wrote: >> Im using the mysql userdb, but the passwords are stored in MD5. >> I want to be able to get the password within the post login script, >> not from >> the log file. >> >> Is there any way to do this? > Timo Sirainen wrote: > user_query = SELECT

Re: [Dovecot] Password environment variable - logging the password

2009-06-06 Thread Timo Sirainen
On Jun 6, 2009, at 5:19 AM, Donovan Craig wrote: I’m using the mysql userdb, but the passwords are stored in MD5. I want to be able to get the password within the post login script, not from the log file. Is there any way to do this? user_query = SELECT '%w' as plain_pass, ... then it sh

Re: [Dovecot] Password environment variable - logging the password

2009-06-06 Thread Donovan Craig
> look at the setting: > > # In case of password mismatches, log the passwords and used scheme so the # problem can be debugged. Requires auth_debug=yes to be set. > #auth_debug_passwords = no Thanks for your replies so far. As mentioned, I¹d like to be able to log the username and password in pl

Re: [Dovecot] Password environment variable - logging the password

2009-06-04 Thread Timo Sirainen
On Jun 4, 2009, at 2:47 AM, Donovan Craig wrote: Is there any way we can get access to the plain text password upon login so we can insert this into our user table? What userdb do you use? The password is in %w variable, you can export that with most userdbs.

Re: [Dovecot] Password environment variable - logging the password

2009-06-04 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 4 Jun 2009, Donovan Craig wrote: Is there any way we can get access to the plain text password upon login so we can insert this into our user table? look at the setting: # In case of password mismatches, log the passwords and used scheme

[Dovecot] Password environment variable - logging the password

2009-06-03 Thread Donovan Craig
Hi, We¹re migrating to a Cpanel hosting system. Our passwords are currently stored in MD5. I looked at the post login scripting to be able to start storing the plain text passwords as people login temporarily so we can automate our migration. It seems that the password is not available in the p