• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

authpsa horde Login

GunFood

Basic Pleskian
Hi,

after the automatic installation of MU 13, all users are unable to login through horde. In the smtpd_debuglog I see:
Code:
Aug 29 09:36:03 plesk courier-imapd: Connection, ip=[::ffff:127.0.0.1]
Aug 29 09:36:03 plesk courier-authdaemon: received auth request, service=imap, authtype=login
Aug 29 09:36:03 plesk courier-authdaemon: authpsa: trying this module
Aug 29 09:36:03 plesk courier-authdaemon: authpsa: authentication request with service='imap' authtype='login' authdata='[email protected]..'
Aug 29 09:36:03 plesk courier-authdaemon: authpsa: can't parse authdata into user and pass
Aug 29 09:36:03 plesk courier-authdaemon: authpsa: REJECT - try next module
Aug 29 09:36:03 plesk courier-authdaemon: FAIL, all modules rejected
Aug 29 09:36:03 plesk courier-imapd: LOGIN FAILED, [email protected], ip=[::ffff:127.0.0.1]
Aug 29 09:36:08 plesk courier-authdaemon: received auth request, service=imap, authtype=login
Aug 29 09:36:08 plesk courier-authdaemon: authpsa: trying this module
Aug 29 09:36:08 plesk courier-authdaemon: authpsa: authentication request with service='imap' authtype='login' authdata='[email protected]..'
Aug 29 09:36:08 plesk courier-authdaemon: authpsa: can't parse authdata into user and pass
Aug 29 09:36:08 plesk courier-authdaemon: authpsa: REJECT - try next module
Aug 29 09:36:08 plesk courier-authdaemon: FAIL, all modules rejected
Aug 29 09:36:08 plesk courier-imapd: LOGIN FAILED, method=PLAIN, ip=[::ffff:127.0.0.1]

Any idea? It works fine from any client. THe problem is only Horde.

I also tried
Code:
mchk --without-spam
but it doesn't work.
Thanks
 
First of all make sure that you have PHP5.3 or higher installed. Horde will not work with old PHP versions.
 
Code:
php -v
PHP 5.3.3 (cli) (built: Jul 12 2013 20:35:47)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

It worked without a problem before the update.
 
Last edited:
GunFood, on the affected server run this:

$ telnet localhost imap

You should get something like this:
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=PLAIN IDLE STARTTLS] Courier-IMAP ready. Copyright 1998-2011 Double Precision, Inc. See COPYING for distribution information.

Then type:
aaa login [email protected] password

Do you get "OK LOGIN OK" or it fails?
 
Code:
telnet localhost imap
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 AUTH=PLAIN IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2011 Double Precision, Inc.  See COPYING for distribution information.
aaa login [email protected] PASSW0rd-1
aaa OK LOGIN Ok.

Works. in smtpd debug I see the correct authpsa request:
Code:
 authpsa: authentication request with service='imap' authtype='login' authdata='[email protected].'

from Horde:
Code:
authpsa: authentication request with service='imap' authtype='login' authdata='[email protected]..'
without the password.
So Horde doesn't parse the password field to authpsa.
 
Just as a test, remove "AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256" temporary from IMAP_CAPABILITY in /etc/courier-imap/imapd and restart courier-imap. Does this fix the horde login? Don't remember to restore the previous IMAP_CAPABILITY value and restart courier-imap again after you finished your testing.
 
It didn't work. I fixed it by uninstalling horde, reinstalling it. Running
Code:
/usr/share/psa-pear/pear/pear -c /usr/share/psa-pear/pear.conf update-channel
and
Code:
/usr/share/psa-pear/pear/pear -c /usr/share/psa-pear/pear.conf upgrade
; refreshing the config files (automatic password generation from .horde.shadow) :) So latest version running without any issue.

Let's get ActiveSync 14.1 started.
 
Back
Top