Try pwcheck_metho: sasldb
Tarjei Alexander Skwar wrote: >Hi. > >Because I'm still fighting to get cyrus to work, I decided I'd try the >POP3 next. First, I installed cyrus-imapd 2.0.16 and cyrus-sasl 1.5.27. >I then added a user with saslpasswd. This user also exists as a system. >Next, I changed pwcheck_method to "saslauthd" in /etc/imapd.conf and >/usr/lib/sasl/Cyrus.conf. I then started the saslauthd with "saslauthd >-a pam -T" (or rather, the Mandrake init script did). After that, I >fired up the cyrus server. > >Now I tried a pop3 login using telnet: > >>telnet host pop3 >> >Trying ip... >Connected to host (ip). >Escape character is '^]'. >+OK devel.net-attach.de Cyrus POP3 v2.0.16 server ready >user askwar >+OK Name is a valid mailbox >pass kkkkkkkkkkkkkkk >-ERR Invalid login > >In /var/log/, I get the following messages after I send the pass >string (the pass being the same as I added with saslpasswd): > >==> ./auth.log <== >Mar 5 15:58:29 devel saslauthd[14742]: DEBUG: auth_pam: pam_authenticate failed: >Authentication failure >Mar 5 15:58:29 devel saslauthd[14742]: AUTHFAIL: askwar [PAM auth error] > >==> ./messages <== >Mar 5 15:58:22 devel pop3d[14740]: accepted connection >Mar 5 15:58:29 devel saslauthd[14742]: AUTHFAIL: askwar [PAM auth error] >Mar 5 15:58:29 devel pop3d[14740]: badlogin: gw.net-attach.de[217.70.160.108] >plaintext askwar NO PAM auth error > >/etc/pam.d/pop contains: > >[root@devel pam.d]# cat pop >#%PAM-1.0 >auth required /lib/security/pam_stack.so service=system-auth >account required /lib/security/pam_stack.so service=system-auth > >I suppose /etc/pam.d/system-auth is also relevant, isn't it? > >#%PAM-1.0 > >auth required /lib/security/pam_env.so >auth sufficient /lib/security/pam_unix.so likeauth nullok >auth required /lib/security/pam_deny.so > >account required /lib/security/pam_unix.so > >password required /lib/security/pam_cracklib.so retry=3 >password sufficient /lib/security/pam_unix.so nullok use_authtok md5 shadow >password required /lib/security/pam_deny.so > >session required /lib/security/pam_limits.so >session required /lib/security/pam_unix.so > > >--------- > >I now changed the startup of saslauthd to -t getpwent. Now I get the >following messages in /var/log: > >==> ./messages <== >Mar 5 16:02:29 devel saslauthd[14899]: AUTHFAIL: askwar >Mar 5 16:02:29 devel pop3d[14740]: badlogin: gw.net-attach.de[217.70.160.108] >plaintext askwar NO > >Also with -t shadow I can't get it to work :( > >==> ./messages <== >Mar 5 16:04:11 devel pop3d[14910]: login: gw.net-attach.de[217.70.160.108] askwar >plaintext > >Well, what am I doing wrong and how can I get cyrus to finally work? > >Thanks, > > >Alexander Skwar >