Roundcube Community Forum

Release Support => Pending Issues => Topic started by: derekjwhitten on December 06, 2012, 07:13:01 AM

Title: "Login failed" when logging in to application
Post by: derekjwhitten on December 06, 2012, 07:13:01 AM
Hello,

I have successfully installed Roundcube and was able to send a test email via SMTP and validate the IMAP login from the installer page.

However, now that I try logging in with the same credentials the login page is returning a "Login failed" error message.  I have set auto_create_user to true.

The error log shows:

Code: [Select]
[06-Dec-2012 23:03:04 +1100]: IMAP Error: Login failed for test@derekswebdesign.com.au from 202.161.25.76. AUTHENTICATE PLAIN: Authentication failed. in /home/dwd/webmail.derekswebdesign.com.au/program/include/rcube_imap.php on line 191 (POST /?_task=login&_action=login)
Does anyone have any ideas as to what might be the cause of this?

Any advice is appreciated - thank you.
Title: Re: "Login failed" when logging in to application
Post by: Yoni on December 06, 2012, 09:21:30 AM
Well from that log authentication is failing... Try using another method other than PLAIN...   "LOGIN" for example... You can edit it in /config/main.inc

// IMAP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
// best server supported one)
$rcmail_config['imap_auth_type'] = 'LOGIN';
Title: Re: "Login failed" when logging in to application
Post by: derekjwhitten on December 07, 2012, 02:31:58 AM
Thanks fro your suggestion. It was actually set to NULL which was defaulting to PLAIN as the recommended setting for my server. I changed the setting to LOGIN and am receiving the same error, both on the login page and also in the error logs.

For completeness I tried the other auth types, however these trigger an unsupported authentication mechanism error in the logs.

Out of interest I entered an incorrect password and still receive the same onscreen and error log errors. Initially I had thought the problem was in creating a user account in Roundcube, but now I suspect there's a problem connecting to the IMAP server. Login did work during the installation proc4ss.

Any other suggestions?
Title: Re: "Login failed" when logging in to application
Post by: oldtimer on March 11, 2013, 12:56:37 PM
Does anyone have a resolution for the problem in this thread?

The Imap CHECK in the installer works fine.  However the exact same login fails from the login screen.  Our maillog shows the exact same information for both logins.  PLAIN, secured, addresses etc.  In the maillog Dovecot reports "Authentication Failed" on the occasion that the login comes form the RoundCube home screen.  BUT Dovecot allows the login with no problem from the Installer test panel.

Any help would be appreciated.  I have another server which works great, those users love RC-   now if only I could roll it out on this other server for these other users.

many thanks--   m
Title: Re: "Login failed" when logging in to application-UPDATE
Post by: oldtimer on March 11, 2013, 01:41:42 PM
SOLVED-  (at least for me)

Main.inc.php
//SYSTEM section
$rcmail_config['auto_create_user'] = true;

the default for this is "false"- change to "true" and voila-

--m