Roundcube Community Forum

Release Support => Pending Issues => Topic started by: no1uno on October 20, 2007, 10:20:04 PM

Title: Login Error
Post by: no1uno on October 20, 2007, 10:20:04 PM
Hi all
I have just installed Roundcube, and have been trying to get it to work. I have been searching this forum and hMailserver forum to help me to get it to work.

I have finally got to the login page, but thats as far as I get. When I click the submit button after entering user details, I just get returned back to the login screen. I know its not an error with login details because when I do enter the wrong credentials I get a return error "Login Failed"
Title: Re: Login Error
Post by: SKaero on October 20, 2007, 10:30:50 PM
Any errors in the error log?
Title: Re: Login Error
Post by: no1uno on October 20, 2007, 10:54:47 PM
Quote from: SKaero Any errors in the error log?

No errors. Only ones are when I tried to login with wrong credetials.

[21-Oct-2007 12:51:32 +1000] IMAP Error: Authentication for support failed (LOGIN): "a001 NO Invalid user name or password. Please use full email address as user name." in on line 0
Title: Re: Login Error
Post by: no1uno on October 23, 2007, 04:31:04 AM
*Bump*

I have seen this error mentioned a few times on the board with little in the way of a resolution!
Surely there must be a fix for this! ???

Cheers
Title: Re: Login Error
Post by: no1uno on November 12, 2007, 09:17:54 PM
 :'( I'm still hoping someone can help me with this!
Title: Re: Login Error
Post by: observer on November 13, 2007, 05:11:17 AM
So am I. ???
Title: Re: Login Error
Post by: no1uno on December 27, 2007, 10:57:36 AM
Posted this problem over 2 months ago, and still have this error. Glad I didn't pay anything this!
Go Squirrelmail. ;D
Title: Re: Login Error
Post by: carefree on December 28, 2007, 12:32:17 AM

Add localhost to these lines:

$rcmail_config['default_host'] = 'localhost';

$rcmail_config['smtp_server'] = 'localhost';
Title: Re: Login Error
Post by: clf on April 14, 2008, 01:18:06 PM
I was having this problem as well, until I stopped accessing the login page using http://localhost/roundcube and changed to http://myhost.mydomain.com/roundcube

I suspect it's a cookie thing - make sure your session_domain in main.inc.php and your "mydomain.com" in the URL you're accessing it with match up.
Title: Login Error
Post by: evb on May 15, 2008, 03:33:17 AM
Did someone find a solution for this?

I've tried all proposed solutions, but no result, I can't pass the login screen.
My roundcube user is created in the roundcube database, together with a identity. I see a successfull login in my IMAP server (hmailserver), followed immediately by a logout. Is this the cause?
Title: Login Error
Post by: M*I*B on January 12, 2009, 02:03:22 PM
... I just have an problem near or identical like this ...

RC is installed in a root of a SubDomain. I call RC by mail.domain.tld

So all things with topic domain and near this are set by the following code in the main.inc.php
<?php
$rcmail_config 
= array();
$tempDomain array_reverse(explode(&quot;.&quot;,$_SERVER['HTTP_HOST']));
$tempDomain $tempDomain[1].&quot;.&quot;.$tempDomain[0];
$tempHost = &quot;mail.&quot;.$tempDomain;

... 
blabla ...

$rcmail_config['default_host'] = $tempDomain;
$rcmail_config['username_domain'] = $tempDomain;
$rcmail_config['mail_domain'] = $tempDomain;
$rcmail_config['smtp_server'] = $tempDomain;
$rcmail_config['smtp_helo_host'] = $tempDomain;

... 
blabla ...

$rcmail_config['session_domain'] = $tempHost;

... 
blabla ...
?>

So all works fine at the 1st view, but...

1. If I set session_domain to tempHost or tempDomain I can't log in
-> Apache- ErrorLog don't say any about that
-> RC- userlogins say Successful login for ... :o

2. If I set session_domain to an empty string (default)
-> Apache- ErrorLog say:
once-> PHP Notice:  Undefined index:  HTTPS in C:\\[path to]\\iniset.php on line 56
twice-> PHP Notice:  Undefined index:  HTTPS in C:\\[path to]\\iniset.php on line 56, referer: mail.domain.tld
twice-> PHP Notice:  Undefined index:  HTTPS in C:\\[path to]\\iniset.php on line 56, referer: mail.domain.tld/?_task=mail
-> RC- userlogins say Successful login for ...


So I have try many different combinations more but ever with one of the results described before...

 I belive it must be possible to get it to run without Errormessages?!?

Anybody an idea???

(sorry about my ugly english...)

PS: The tempDomain/Host thing dont's work right in MyRC at the moment. I belive rosali will fix it in the next time...
Title: Login Error
Post by: rosali on January 13, 2009, 12:43:31 AM
@M*I*B:

Problem has been fixed meanwhile in SVN trunk (Diff r2210:2211 for trunk/roundcubemail/program/include/iniset.php ? RoundCube Webmail ? Trac (http://trac.roundcube.net/changeset?old_path=%2Ftrunk%2Froundcubemail%2Fprogram%2Finclude%2Finiset.php&old=2210&new_path=%2Ftrunk%2Froundcubemail%2Fprogram%2Finclude%2Finiset.php&new=2211))
Title: Login Error
Post by: M*I*B on January 13, 2009, 02:14:37 AM
... hmm ...
Than it dosnt work at my side. I have exactly the new one described in the link you write down...
Title: Login Error
Post by: rosali on January 13, 2009, 05:17:46 AM
You won't get the NOTICE error with current SVN trunk. I believe you installed MyRoundCube which already is updated to current SVN release and you also have a default RoundCube stable installation which may throw the NOTICE error.