Re: [Dovecot] multiple password schemes and sql?

2008-08-27 Thread Timo Sirainen
On Aug 28, 2008, at 6:05 AM, R A wrote: Just a thought though, as you have to store the password in the form {CRAM-MD5}x to actually get that and not the default_pass_sheme would it not be better to have an 'extra' field that could override default_pass scheme if it existed instead?

Re: [Dovecot] multiple password schemes and sql?

2008-08-27 Thread R A
Works like a charm now!! Just a thought though, as you have to store the password in the form {CRAM-MD5}x to actually get that and not the default_pass_sheme would it not be better to have an 'extra' field that could override default_pass scheme if it existed instead? That way it would a

Re: [Dovecot] multiple password schemes and sql?

2008-08-27 Thread Timo Sirainen
On Wed, 2008-08-27 at 14:58 +0800, R A wrote: > Hi again. > > Ok, tested now with 1.1.2 and also a nightly build with 1.2-UNSTABLE to > make sure it isnt too old. > > password query to talk to database in dovecot-sql.conf is: > > password_query = SELECT id as user, passwd as password FROM passwd

Re: [Dovecot] multiple password schemes and sql?

2008-08-27 Thread R A
Hi again. Ok, tested now with 1.1.2 and also a nightly build with 1.2-UNSTABLE to make sure it isnt too old. password query to talk to database in dovecot-sql.conf is: password_query = SELECT id as user, passwd as password FROM passwds WHERE id = '%u' AND model = '%m' This constantly fails and

Re: [Dovecot] multiple password schemes and sql?

2008-08-25 Thread Timo Sirainen
On Tue, 2008-08-26 at 13:42 +0800, R A wrote: > Is there any variable I can use in the sql query to use an extra field > that contains the password type? You could use %m which expands to the used mechanism name. signature.asc Description: This is a digitally signed message part

Re: [Dovecot] Multiple password schemes

2008-02-26 Thread Jan van den Berg
onden: dinsdag 26 februari 2008 14:02 Aan: Jan van den Berg CC: dovecot@dovecot.org Onderwerp: Re: [Dovecot] Multiple password schemes On Tue, 2008-02-26 at 13:27 +0100, Jan van den Berg wrote: > This works; however I noticed because of history a lot of my users still > have a CRYPT password (not

Re: [Dovecot] Multiple password schemes

2008-02-26 Thread Timo Sirainen
On Tue, 2008-02-26 at 13:27 +0100, Jan van den Berg wrote: > This works; however I noticed because of history a lot of my users still > have a CRYPT password (not a MD5-CRYPT password). Now I get these > errors: CRYPT and MD5-CRYPT are compatible in pretty much all operating systems. You could jus