[Dovecot] Light "bug" in authtest, sockets path
Hi to all! I’ve changed position to client auth socket to enable postfix authentication. The socket is now created in /var/spool/postfix/private/auth. authtest do not catch up the change. Reading source I’ve seen that path to auth sockets is written explicitly in function authtest_passdb in util/authtest.c to:
if (auth_socket_path == NULL)
auth_socket_path = PKG_RUNDIR"/auth-client”;
I know I can launch authtest specifing path to socket, but I think it would be better if authtest would parse dovecot.conf and find out where sockets are. I’ve tried to code it by myself, but I’ve had no time to go deep in the code. Is it possible to have this “feature” added???
TIA Andrea
On 2009-12-02 18:17:39 +0100, Andre wrote:
I’ve changed position to client auth socket to enable postfix authentication. The socket is now created in /var/spool/postfix/private/auth. authtest do not catch up the change. Reading source I’ve seen that path to auth sockets is written explicitly in function authtest_passdb in util/authtest.c to:
if (auth_socket_path == NULL) auth_socket_path = PKG_RUNDIR"/auth-client”;
I know I can launch authtest specifing path to socket, but I think it would be better if authtest would parse dovecot.conf and find out where sockets are. I’ve tried to code it by myself, but I’ve had no time to go deep in the code. Is it possible to have this “feature” added???
can you paste your dovecot -n output?
darix
-- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
On Dec 2, 2009, at 11:17 AM, Andre wrote:
I know I can launch authtest specifing path to socket, but I think it would be better if authtest would parse dovecot.conf and find out where sockets are. I’ve tried to code it by myself, but I’ve had no time to go deep in the code. Is it possible to have this “feature” added???
You could also add multiple auth sockets, one for Postfix and another for authtest.
On 02/dic/2009, at 18.58, Timo Sirainen wrote:
On Dec 2, 2009, at 11:17 AM, Andre wrote:
I know I can launch authtest specifing path to socket, but I think it would be better if authtest would parse dovecot.conf and find out where sockets are. I’ve tried to code it by myself, but I’ve had no time to go deep in the code. Is it possible to have this “feature” added???
You could also add multiple auth sockets, one for Postfix and another for authtest.
This is the correct solution! I suspected it was possible, but did not find evidence of it in documentation. With a little try I found you can define more than one "socket listen” section. Mementum for who could have my same problem:
socket listen { master { path = /var/run/dovecot/auth-master mode = 0600 user = mail group = mail } client { path = /var/run/dovecot/auth-client mode = 0660 } } socket listen { client { path = /var/spool/postfix/private/auth mode = 0666 user = postfix group = postfix } }
Thanks Andre
participants (4)
-
Andre
-
Andrea Mistrali
-
Marcus Rueckert
-
Timo Sirainen