Author Topic: Failed login problem  (Read 7412 times)

Offline nomoo

  • Newbie
  • *
  • Posts: 3
Failed login problem
« on: February 16, 2011, 11:34:09 AM »
Hello!

Well, RC is a great piece of software and it works like a charm.
But i have a little problem that gives me a headache. My setup:
1) RC 0.5, upgraded to 0.5.1, no changes
2) Dovecot 1.2.16
3) postfix-2.8.0,1
4) apache 1.3.42

If I enter the right login/pass everything is ok, but when i'm trying to enter the incorrect pass, after a minute of waiting i get this:
Code: [Select]
IMAP Error in /usr/local/www/roundcube/program/include/rcube_imap.php (192): Login failed for user@domain.ru from x.x.x.106. AUTHENTICATE CRAM-MD5: A0005 NO [AUTHENTICATIONFAILED] Authentication failed.
instead of simple 'login failed'

Logs:
errors:
Code: [Select]
[16-Feb-2011 19:28:36 +0300]: IMAP Error: Login failed for user@domain.ru from x.x.x.1(X-Real-IP: x.x.x.x,X-Forwarded-For: x.x.x.x). AUTHENTICATE CRAM-MD5: A0005 NO [AUTHENTICATIONFAILED] Authentication failed. in /usr/local/www/roundcube/program/include/rcube_imap.php on line 192 (POST /?_task=login&_action=login)

imap:
Code: [Select]
[16-Feb-2011 19:27:34 +0300]: C: A0002 LOGIN user@domain.ru 123
[16-Feb-2011 19:27:37 +0300]: S: A0002 NO [AUTHENTICATIONFAILED] Authentication failed.
[16-Feb-2011 19:27:37 +0300]: C: A0003 AUTHENTICATE DIGEST-MD5
[16-Feb-2011 19:27:42 +0300]: S: + =
[16-Feb-2011 19:27:42 +0300]: C: =
[16-Feb-2011 19:27:44 +0300]: S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=PLAIN AUTH=CRAM-MD5] Host ready.
[16-Feb-2011 19:27:44 +0300]: C: A0001 ID (name "Roundcube Webmail" version 0.5.1 php 5.3.5 os FreeBSD command /)
[16-Feb-2011 19:27:44 +0300]: S: * ID NIL
[16-Feb-2011 19:27:44 +0300]: S: A0001 OK ID completed.
[16-Feb-2011 19:27:44 +0300]: C: A0002 LOGIN user@domain.ru 123
[16-Feb-2011 19:27:45 +0300]: S: A0003 NO [AUTHENTICATIONFAILED] Authentication failed.
[16-Feb-2011 19:27:45 +0300]: C: A0004 AUTHENTICATE PLAIN =
[16-Feb-2011 19:27:47 +0300]: S: A0002 NO [AUTHENTICATIONFAILED] Authentication failed.
[16-Feb-2011 19:27:47 +0300]: C: A0003 AUTHENTICATE DIGEST-MD5
[16-Feb-2011 19:27:52 +0300]: S: + =
[16-Feb-2011 19:27:52 +0300]: C: =
[16-Feb-2011 19:27:55 +0300]: S: A0003 NO [AUTHENTICATIONFAILED] Authentication failed.
[16-Feb-2011 19:27:55 +0300]: C: A0004 AUTHENTICATE PLAIN b=
[16-Feb-2011 19:27:58 +0300]: S: A0004 NO [AUTHENTICATIONFAILED] Authentication failed.
[16-Feb-2011 19:27:58 +0300]: C: A0005 AUTHENTICATE CRAM-MD5
[16-Feb-2011 19:28:08 +0300]: S: A0004 NO [AUTHENTICATIONFAILED] Authentication failed.
[16-Feb-2011 19:28:08 +0300]: C: A0005 AUTHENTICATE CRAM-MD5
[16-Feb-2011 19:28:13 +0300]: S: + =
[16-Feb-2011 19:28:13 +0300]: C:
[16-Feb-2011 19:28:16 +0300]: S: A0005 NO [AUTHENTICATIONFAILED] Authentication failed.
[16-Feb-2011 19:28:16 +0300]: C: A0006 LOGOUT



Thanks in advance!

Offline alec

  • Hero Member
  • *****
  • Posts: 1,166
Failed login problem
« Reply #1 on: February 17, 2011, 02:51:39 AM »
Set imap_auth_type or use this patch Changeset 4543 ? Roundcube Webmail

Offline nomoo

  • Newbie
  • *
  • Posts: 3
Failed login problem
« Reply #2 on: February 18, 2011, 04:48:06 AM »
Thanks, Alec

I've tried the last revision of this file and got the message:

Server error (OK)

Don't know what does it mean but RC stopped to work properly, so i downgraded to 0.5.1 version.

Maybe i did something wrong? Should I use another revisions for any other files?

Offline gfeyen

  • Newbie
  • *
  • Posts: 1
Error message of
« Reply #3 on: April 03, 2011, 07:16:01 AM »
please change error report level in custom php.ini

error_reporting  =  E_ALL & ~E_NOTICE

Offline kevinhseih115

  • Newbie
  • *
  • Posts: 1
Re: Failed login problem
« Reply #4 on: April 04, 2015, 09:40:02 AM »
roundcubemail version 1.1.1

 vi /etc/roundcubemail/config.inc.php
Check line 73 as
$config['username_domain'] = '';
 Otherwise login will error