Date: Fri, 25 Apr 2008 19:18:37 +0300 From: Lena@lena.kiev.ua To: freebsd-questions@FreeBSD.org Subject: PAM error: error in service module Message-ID: <20080425161837.GD735@lena.kiev>
next in thread | raw e-mail | index | archive | help
Hi, I'm trying to set up Exim in a jail to authenticate using the security/pam_pop3 port. Exim authenticator: plain: driver = plaintext public_name = PLAIN server_prompts = : server_condition = ${if pam{$auth2:${sg{$auth3}{:}{::}}}} server_set_id = $2 The jail hasn't /etc/pam.conf file, /etc/pam.d/exim contains one line: auth required /usr/local/lib/pam_pop3.so hostname=localhost debug pwprompt=Password: timeout=5 Exim correctly passes the login (email address) and password to pam_pop3 (they are visible in /var/log/debug.log), pam_pop3 asks the POP3 server and gets the +OK response (password correct): Apr 25 17:22:41 lena PAM-pop3[24639]: Received Password Response: +OK^M Apr 25 17:22:41 lena PAM-pop3[24639]: Sent QUITting: QUIT ^M Apr 25 17:22:41 lena PAM-pop3[24639]: Authentication Succeeded for (username)@(domain) at server localhost port 110 But then Exim gets the error (output of `exim -d+auth -bh 62.80.174.195`, I masked the login and password): $auth1 = $auth2 = (username)@(domain) $auth3 = (password) $1 = $2 = (username)@(domain) $3 = (password) Running PAM authentication for user "(username)@(domain)" PAM error: error in service module expansion failed: error in service module SMTP>> 435 Unable to authenticate at present Nothing in /var/log/messages,auth.log. uname -a FreeBSD lena.kiev.ua 6.3-STABLE FreeBSD 6.3-STABLE #0: Mon Mar 24 08:01:01 CET 2008 root()dione.ispsystem.net:/root/src/sys/i386/compile/ISPSYSTEM_PAE i386 On another machine - my 6.2-RELEASE-p1 workstation: /usr/src # fgrep -r -B 1 'error in service module' * contrib/openpam/lib/pam_strerror.c- case PAM_SERVICE_ERR: contrib/openpam/lib/pam_strerror.c: return ("error in service module"); /usr/src # fgrep -r 'PAM_SERVICE_ERR' * | wc -l 85 I have root access only inside the jail (it's VPS/VDS). How can I debug futher? Thanks, Lena
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080425161837.GD735>