[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 \

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 \

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

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

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

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