[Exim] smtp auth problem with exim-4.10

Página Inicial
Delete this message
Reply to this message
Autor: Ben Lutgens
Data:  
Para: exim-users
Assunto: [Exim] smtp auth problem with exim-4.10
--
I'm on a redhat-7.3 box with all the updates and am using exim-4.10 (from
source and have the following bits in runtime config (which works on my
debian exim3 box)

plain:
driver = plaintext
public_name = PLAIN
server_condition = "${if pam{$1:$2}{1}{0}}"
server_set_id = $2

As you can see I'm trying to use pam. A sample session follows (name and
password santized, I get the same result from a known good username and
password. I tested it with ssh, console login, cyrus imap/pop):

[blutgens@stfu ~]$ telnet 192.168.1.101 25
Trying 192.168.1.101...
Connected to 192.168.1.101.
Escape character is '^]'.
220 mail.mortgagesunlimited.net ESMTP Exim 4.10 Thu, 22 Aug 2002 12:09:12
-0500
ehlo rtfm
250-mail.mortgagesunlimited.net Hello rtfm [192.168.1.168]
250-SIZE 52428800
250-PIPELINING
250-AUTH PLAIN LOGIN
250 HELP
AUTH PLAIN AHVzZXJuYW1lAHBhc3N3b3Jk
535 Incorrect authentication data

The server output from this very session using "exim -bd -d+auth" shows the
following interesting stuff:
SMTP>> 250-mail.mortgagesunlimited.net Hello rtfm [192.168.1.168]

250-SIZE 52428800
250-PIPELINING
250-AUTH PLAIN LOGIN
250 HELP
SMTP<< AUTH PLAIN AHVzZXJuYW1lAHBhc3N3b3Jk
Running PAM authentication for user ""
PAM error: Authentication failure
plain authenticator:
$1 =
$2 = username
$3 = password
expanded string: 0
SMTP>> 535 Incorrect authentication data

LOG: MAIN REJECT
Authentication failed for (rtfm) [192.168.1.168]: 535 Incorrect
authentication data (set_id=username)

As we can see below it's linked against -lpam properly
[root@mail exim-4.10]# ldd `which exim`
        libresolv.so.2 => /lib/libresolv.so.2 (0x4001b000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x4002d000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x40042000)
        libpam.so.0 => /lib/libpam.so.0 (0x4006f000)
        libdl.so.2 => /lib/libdl.so.2 (0x40077000)
        libdb-3.3.so => /lib/libdb-3.3.so (0x4007a000)
        libssl.so.2 => /lib/libssl.so.2 (0x40109000)
        libcrypto.so.2 => /lib/libcrypto.so.2 (0x40137000)
        libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)



Only thing I can deduce is that my condition is hosed. Is anyone doing this
on a redhat-7.3 box and can help debug my pam condition for me?

Also, the search engine for the mailing lists on exim.org doesn't _ever_
net me any results. I combed a couple months of mlist archives and didn't
find anything relavent. Any help would be much appreciated.

--
Ben Lutgens                 | http://people.sistina.com/~blutgens/
System Administrator     | http://www.sistina.com/
Sistina Software Inc. |


"If you love something set it free, if it doesn't come back to you
hunt it down and set it on fire" -- George Carlin
--
[ Content of type application/pgp-signature deleted ]
--