Hi!
///////////////// I've enabled PAM authenticator:
login:
driver = plaintext
public_name = LOGIN
server_prompts = "Username:: : Password::"
server_condition = ${if pam{$1:$2}{1}{0}}
server_set_id = $1
plain:
driver = plaintext
public_name = PLAIN
server_condition = ${if pam{$2:$3}{1}{0}}
server_set_id = $2
///////////////// I've tested 3 possible configurations:
0.] whithout /etc/pam.d/exim
1.] /etc/pam.d/exim
#%PAM-1.0
auth required /lib/security/pam_permit.so
2.] /etc/pam.d/exim
#%PAM-1.0
auth required /lib/security/pam_unix.so
auth required /lib/security/pam_tally.sofile=/var/log/faillog onerr=succeed no_magic_root
account required /lib/security/pam_tally.so deny=0 file=/var/log/faillog onerr=succeed
account required /lib/security/pam_unix.so
(btw it seems exim even doesn't try to talk to PAM)
///////////////// EXTENDED LOG:
mar 17 03:30:37 xxxxx exim: SMTP<< AUTH LOGIN
mar 17 03:30:37 xxxxx exim:
mar 17 03:30:37 xxxxx exim:
mar 17 03:30:37 xxxxx exim: Running PAM authentication for user "my_user"
mar 17 03:30:37 xxxxx exim: PAM error: Authentication failure
mar 17 03:30:37 xxxxx exim: login authenticator:
mar 17 03:30:37 xxxxx exim: $1 = my_user
mar 17 03:30:37 xxxxx exim: $2 = ***********
mar 17 03:30:37 xxxxx exim: expanded string: 0
mar 17 03:30:37 xxxxx exim:
mar 17 03:30:37 xxxxx exim: LOG: 0 MAIN REJECT
mar 17 03:30:37 xxxxx exim: Authentication failed for gw-int1
(SIEFCA) [x.x.x.x]: 535 Incorrect
authentication data
Mar 17 03:30:37 xxxxx exim[31558]: 2001-03-17 03:30:37 Authentication
failed for xxxxx (SIEFCA) [x.x.x.x]:
535 Incorrect authentication data
What is wrong here?
--
Paweł Wilk <siefca@???> - Poland.com sa -
Work: +48 (71) 78 77 532
Cell: +48 (608) 051 640
1024D/FF0D20A9: 3B4A 55BA B502 9C4D D7ED 5643 BC7C F62D FF0D 20A9