It'd be useful for us if the IMAP passdb could be used as a prefetch userdb. The remote IMAP server could respond with something like * OK key=value * OK key=value SEQ OK [CAPABILITY ...] Logged in. Or * OK <some JSON key value pairs> SEQ OK [CAPABILITY ...] Logged in. Would anyone else find this useful?
On 2.8.2013, at 18.20, Richard Platel <rplatel at tucows.com> wrote:> It'd be useful for us if the IMAP passdb could be used as a prefetch userdb. > > The remote IMAP server could respond with something like > > * OK key=value > * OK key=value > SEQ OK [CAPABILITY ...] Logged in. > > Or > > * OK <some JSON key value pairs> > SEQ OK [CAPABILITY ...] Logged in. > > Would anyone else find this useful?Uh. Why not simply something completely different like HTTP-based passdb?
> On 2.8.2013, at 18.20, Richard Platel <rplatel at tucows.com> wrote: > >> It'd be useful for us if the IMAP passdb could be used as a prefetch userdb. >> >> The remote IMAP server could respond with something like >> >> * OK key=value >> * OK key=value >> SEQ OK [CAPABILITY ...] Logged in. >> >> Or >> >> * OK <some JSON key value pairs> >> SEQ OK [CAPABILITY ...] Logged in. >> >> Would anyone else find this useful? > > Uh. Why not simply something completely different like HTTP-based passdb? >I can't find info for HTTP on the wiki, can we set that up as a success/fail passdb? We do our own password auth (so we can support custom hash types, etc).
Timo Sirainen
2013-Aug-02 15:44 UTC
[Dovecot] HTTP passdb (was: feature request: IMAP passdb prefetch)
(Cc'd to dovecot list anyway since other people might be interested) On 2.8.2013, at 18.34, Richard Platel <rplatel at tucows.com> wrote:>> Uh. Why not simply something completely different like HTTP-based passdb? > > I can't find info for HTTP on the wiki, can we set that up as a success/fail passdb? We do our own password auth (so we can support custom hash types, etc).I've only a private version of a HTTP-based passdb implemented for a customer. I'm not sure if I should bother adding something to be distributed with Dovecot, since I guess most people would want to modify it in some way anyway. Here's a somewhat modified version of it that hopefully works (at least it compiles): http://dovecot.org/patches/2.2/passdb-openam.c