[tpop3d-discuss] auth_passwd problems with 1.5.1

Travis Miller tmiller at web-1hosting.net
Wed, 20 Aug 2003 13:48:28 -0500


Testing out 1.5.1, having an issue w/ auth_passwd:

Compiled with:
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--disable-auth-pam \
--enable-auth-passwd \
--enable-shadow-passwords \
--enable-auth-mysql \
--enable-mbox-bsd \
--disable-dotfile-locking \
--enable-tls \
--with-mysql-include-dir=/usr/local/mysql/include/mysql \
--with-mysql-lib-dir=/usr/local/mysql/lib/mysql \
--with-openssl-root=/usr/local/openssl

Compiled and tested, auth_mysql works perfectly but auth_passwd does 
not.  So then I created a minimalist conf file w/o mysql and recompile 
without mysql for testing.

CFLAGS='-O2 -mcpu=i686 -march=i686' ./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-auth-pam \
--enable-auth-passwd \
--enable-shadow-passwords \
--enable-mbox-bsd \
--disable-dotfile-locking \
--enable-tls \
--with-openssl-root=/usr/local/openssl


A telnet session:
root@mailtest:/home/test/tpop3d-1.5.1# telnet localhost 111
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK <9a5c7efe48824dba364c41ef7e7c4ec4@testserver>
user test
+OK Tell me your password.
pass testing
-ERR Lies! Try again!
quit
+OK Fine. Be that way.
Connection closed by foreign host.
root@mailtest:/home/test/tpop3d-1.5.1#

Output from tpop3:
root@mailtest:/home/test/tpop3d-1.5.1# ./tpop3d -v -d -f /etc/tpop3d.conf.t
parse_listeners: listening on address 127.0.0.1:111
1 authentication drivers successfully loaded
net_loop: tpop3d version 1.5.1 successfully started
connection_sendresponse: client [5]127.0.0.1/testserver: sent `+OK 
<9a5c7efe48824dba364c41ef7e7c4ec4@testserver>'
listeners_post_select: client [5]127.0.0.1/testserver: connected to 
local address 127.0.0.1:111
connection_parsecommand: client [5]127.0.0.1/testserver: received `user 
test'
connection_sendresponse: client [5]127.0.0.1/testserver: sent `+OK Tell 
me your password.'
connection_parsecommand: client [5]127.0.0.1/testserver: received `pass 
[...]'
connection_sendresponse: client [5]127.0.0.1/testserver: sent `-ERR 
Lies! Try again!'
connection_do: client `[5]127.0.0.1/testserver': username `test': 1 
authentication failures
connection_parsecommand: client [5]127.0.0.1/testserver: received `quit'
connection_sendresponse: client [5]127.0.0.1/testserver: sent `+OK Fine. 
Be that way.'
connections_post_select: client [5]127.0.0.1/testserver: disconnected; 
31/126 bytes read/written
net_loop: terminating on signal 2
root@mailtest:/home/test/tpop3d-1.5.1#

Nothing useful from what I can see... the user "test" with password 
"testing" will successfuly authenticate on the system.

 From ./tpop3d -h:
Available authentication drivers:

   auth-passwd      Uses /etc/passwd or /etc/shadow

Available mailbox drivers:

   bsd              BSD (`Unix') mailspool
   empty            Empty mailbox

Enabled features:

   Mass virtual hosting
   Suppress C-client metadata
   TLS

This is running on an older version of slackware, 7.1 to be exact.  The 
exact same configuration on a slackware 9.0 box works perfectly.

- Travis