Author Topic: Installation on Mac Mountain Lion server, Authentication failure  (Read 6335 times)

Offline einarso

  • Newbie
  • *
  • Posts: 1
Hi,
I have spent the whole day on installing roundcube (was missing some php plugins, and not really a server specialist).  Now I have done most of the installation, but am stopping at the final hurdle. 
When testing the imap, I get the following error:

IMAP connect:  NOT OK(Login failed for einar from 192.168.10.1. Authentication failed.)


I am sure I am using the right user and pass.

Any ideas?

Offline TonyPHX

  • Jr. Member
  • **
  • Posts: 11
Re: Installation on Mac Mountain Lion server, Authentication failure
« Reply #1 on: January 05, 2013, 06:16:17 PM »
Congratulations on installing on Mountain Lion Server.  I for one think it shoes everything wrong with Mountain Lion Server.  So many ways Apple makes OSX Server hard to work with....

Anyways, I think your challenge is with SSL...so just to make sure you can connect, go to the server admin, certs section, and select custom...then for Mail (IMAP and POP) choose no cert, or make sure you pick the right one.  I would start with none, just to make sure it's all working.

Offline andyroz

  • Newbie
  • *
  • Posts: 2
Re: Installation on Mac Mountain Lion server, Authentication failure
« Reply #2 on: July 21, 2013, 11:56:57 PM »
Sorry to resurrect the thread, but my issue is exactly the same, and no solution was posted here.

RoundCube installed effortlessly on OSX (under Apache, with MySql). telnet connections to IMAP 143 & 993 work fine, including login ("? LOGIN user pass").

However, login from the RoundCube login page does not work.

Current situation is I've tried:

openssl s_client -connect localhost:993 -crlf
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE XAPPLEPUSHSERVICE AUTH=CRAM-MD5 AUTH=X-PLAIN-SUBMIT AUTH=DIGEST-MD5 AUTH=GSSAPI AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
? LOGIN user pass
? OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS XAPPLEPUSHSERVICE COMPRESS=DEFLATE X-FTS-COMPACT QUOTA URLAUTH] Logged in

 - seeing as this worked, I altered main.inc.php as follows:

$rcmail_config['default_host'] = 'ssl://localhost:993';

...and restarted. The login still fails from the web page. Tried the site with and without SSL.

error log contains:
[22-Jul-2013 13:51:38 +1000]: IMAP Error: Login failed for user from 61.61.61.61. Authentication failed. in /Path/To/Roundcube/rcube_imap.php on line 184 (POST /webmail/?_task=login&_action=login)


Any help would be most appreciated.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Installation on Mac Mountain Lion server, Authentication failure
« Reply #3 on: July 22, 2013, 12:40:55 AM »
Enable imap_debug and post the log.

Offline andyroz

  • Newbie
  • *
  • Posts: 2
Re: Installation on Mac Mountain Lion server, Authentication failure
« Reply #4 on: July 22, 2013, 01:40:05 AM »
Got:
Quote
Jul 22 15:26:30 mm.myserver log[176]: auth: Error: od(user,::1): Credentials could not be verified, username or password is invalid.
Jul 22 15:26:30 mm.myserver log[176]: auth: Error: od(user,::1): authentication failed for user=user, method=DIGEST-MD5

...so I did a little Google Search and found this:
http://wiki.dovecot.org/Authentication/Mechanisms/DigestMD5

Quote
Digest-MD5 has two things that make it special and which can cause problems:

    Instead of using user@domain usernames, it supports realms.
    User name and realm are part of the MD5 hash that's used for authentication.

For these and other reasons Digest-MD5 has been obsoleted by SCRAM.

...so I tried changing the method to PLAIN, and the login worked. Tried CRAM-MD5 and that didn't work either, but happy enough with PLAIN since I'm on SSL.

Cheers!

Offline uptimejeff

  • Newbie
  • *
  • Posts: 8
Re: Installation on Mac Mountain Lion server, Authentication failure
« Reply #5 on: October 02, 2013, 06:10:46 PM »
For others referencing this thread.. hopefully this makes it easy to install on 10.8 server
http://www.roundcubeforum.net/index.php/topic,14898.0.html