[Dovecot] "doveadm auth user" requiring a tty

Timo Sirainen tss at iki.fi
Tue Nov 30 02:19:32 EET 2010


On 27.11.2010, at 23.17, Axel Luttgens wrote:

> "doveadm auth user" could be an alternative, but it imperatively requires a tty, which may not always easily nor efficiently be available in a scripting environment.
> 
> +	// A very crude attempt... this supposes that STDIN not being a tty
> +	// may never happen outside of "doveadm auth", and that STDIN will
> +	// always be clean.

I'm also not sure if there's any better way to do this.. There is anyway only two users of askpass() and in both situations it should be pretty safe to just use stdin. Committed:

http://hg.dovecot.org/dovecot-2.0/rev/6ea1671108f1
http://hg.dovecot.org/dovecot-2.0/rev/719ce27f9955



More information about the dovecot mailing list