Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: Paperguides on November 24, 2008, 07:02:18 PM

Title: Users cannot log in to webmail after upgrade to 7.4
Post by: Paperguides on November 24, 2008, 07:02:18 PM
I have reports from two of the site I updated over the weekend that an individual user cannot now login to Webmail. The error message is:

A fatal error has occurred

Session cookies will not work without a FQDN and with a non-empty 
cookie domain. Either use a fully qualified domain name like 
"http://www.example.com" instead of "http://example" only, or set the 
cookie domain in the Horde configuration to an empty value, or enable 
non-cookie (url-based) sessions in the Horde configuration.

Why does this only affect a few users and how do I fix it?

Thanks

Tony
Title: Re: Users cannot log in to webmail after upgrade to 7.4
Post by: gzartman on November 24, 2008, 09:44:06 PM
I have reports from two of the site I updated over the weekend that an individual user cannot now login to Webmail. The error message is:

A fatal error has occurred

Please report errors with SME to the bug tracker. http://bugs.contribs.org/  If there is a problem with SME, then it starts the ball rolling on getting it fixed.  If it isn't a problem with SME, but something you've done; then you are more likely to get an answer that will help you fix the problem.

Before you file your report, have a look at the httpd error-log file:  /var/log/httpd/error_log.  Scroll down through the log file and look for entries related to the failed webmail login.  Report these error log entries in your bug report.
Title: Re: Users cannot log in to webmail after upgrade to 7.4
Post by: Stefano on November 28, 2008, 01:59:56 PM
Hi

according to some tests it seems due to dns problems.

verify your SME does name resolution..

HTH
Ciao

Stefano
Title: Re: Users cannot log in to webmail after upgrade to 7.4
Post by: caf on December 18, 2008, 01:42:40 PM
I have the same I updated over the weekend that an individual user cannot now login to Webmail. The error message is:

A fatal error has occurred

Session cookies will not work without a FQDN and with a non-empty
cookie domain. Either use a fully qualified domain name like
"http://www.example.com" instead of "http://example" only, or set the
cookie domain in the Horde configuration to an empty value, or enable
non-cookie (url-based) sessions in the Horde configuration.

Why does this only affect a few users and how do I fix it?

Thanks

JPVP
Title: Re: Users cannot log in to webmail after upgrade to 7.4
Post by: christian on December 18, 2008, 02:35:39 PM
I have seen this as well where a user references the internal name of the server instead of the fully qualified name.

For example assume your server internally is called "bert" but your domain is called "ernie.com". prior to 7.4 users could access via https://bert/webmail. However in 7.4 this will fail.

If your internal users instead uses https://bert.ernie.com/webmail then it will work fine.

I don't know why this broke in 7.4, perhaps that is a bug and I assume OP has filed a bug report.
 
Title: Re: Users cannot log in to webmail after upgrade to 7.4
Post by: caf on December 18, 2008, 04:33:40 PM
when I try :
https://mail.caf.local/webmail -> I have a error
https://caf/webmail -> i have a error on SME 7.4, but OK in 7.3
https://192.168.1.1/webmail -> OK - 192.168.1.1 adress of the server

I have this error on 2 servers, but on 1 server, I dont have this error if I do https://mail.caf2.local/webmail, but https://caf2/webmail do a error.

Thanks.
Title: Re: Users cannot log in to webmail after upgrade to 7.4
Post by: christian on December 18, 2008, 05:53:48 PM
I was expecting OP to identify the bug he is hopefully opening. Short of that, can you do a quick search and add your notes to the bug if it exists or create a new bug if does not exist?

Other than allowing us to recognize that there is a common issue, it is the bug report which will actually get it fixed or properly diagnosed.
Title: Re: Users cannot log in to webmail after upgrade to 7.4
Post by: linuxhelp on December 20, 2008, 12:12:30 PM
Is SOLVED see Bug-Tracker SME!!

since 4 weeks!

Bug number
http://bugs.contribs.org/show_bug.cgi?id=4787
Title: Re: Users cannot log in to webmail after upgrade to 7.4
Post by: christian on December 20, 2008, 07:43:30 PM
Is SOLVED see Bug-Tracker SME!!
I'm confused. This bug shows a work around as a solution using a custom template. As this is a standard SME package, shouldn't this be fixed in the standard template?
Title: Re: Users cannot log in to webmail after upgrade to 7.4
Post by: cactus on December 20, 2008, 08:09:04 PM
I'm confused. This bug shows a work around as a solution using a custom template. As this is a standard SME package, shouldn't this be fixed in the standard template?
And I am surprised you are doing the follow-up (only) here. Please add remarks like this to the bugreport. Thanks.
Title: Re: Users cannot log in to webmail after upgrade to 7.4
Post by: christian on December 20, 2008, 08:15:37 PM
fair enough. I was looking for clarification but yes, I suppose I should do that in the bug tracker too.

By the fact that you are surprised, I assume I am otherwise reasonably well behaved.   :eek:
Title: Re: Users cannot log in to webmail after upgrade to 7.4
Post by: judgej on January 26, 2009, 10:39:50 AM
I raised a similar problem in Bugzilla a few versions ago, and it was fixed in a patch. Seems that something like it is back. I can't find the bug now, but it relates to the number of dots used in the cookie domain. There is no reason why sessions should require a FQDN to work, so long as the cookie domain is set correctly, and that means with the correct number of leading and trailing dots. I suspect the problem is the way the cookie domain is formed.

I hit the same problem today, when one of my users needed to use webmail for the first time since the 7.4 upgrade. "It gives me a scary error message!", and that is after getting past Firefox's dire "death to you and your unborn if you accept this certificate" warnings.

-- Jason

Edit: I've just read the bug. This line explains it all:

$conf['cookie']['domain'] = $_SERVER['SERVER_NAME'];

You cannot use the server name as the cookie domain, without *first* suffixing it with a dot:

$conf['cookie']['domain'] = $_SERVER['SERVER_NAME'] . '.';

When I last raised it, the [same] problem was with the main server-manager pages, rather than Horde.
Title: Re: Users cannot log in to webmail after upgrade to 7.4
Post by: cactus on January 26, 2009, 07:03:19 PM
Edit: I've just read the bug. This line explains it all:
A referral to the bug would have been nice so users can judge the context, could you add it to this thread?
Title: Re: Users cannot log in to webmail after upgrade to 7.4
Post by: judgej on January 26, 2009, 07:37:08 PM
A referral to the bug would have been nice so users can judge the context, could you add it to this thread?

The bug posted above:

http://bugs.contribs.org/show_bug.cgi?id=4787

I can't find the one I orginally raised, which is strange. Not sure if it has been locked up as a 'security' bug or something, or purged.
Title: Re: Users cannot log in to webmail after upgrade to 7.4
Post by: David Harper on January 29, 2009, 12:41:22 PM
The missing bug may be a result of the recent server issues.
Title: Re: Users cannot log in to webmail after upgrade to 7.4
Post by: judgej on February 01, 2009, 06:19:14 PM
The missing bug may be a result of the recent server issues.

Nope - I was just imagining I raised it. I didn't. Here is the original bug from the SME 7.1.1. to 7.1.2 upgrade, raised two years ago to the day:

http://bugs.contribs.org/show_bug.cgi?id=2402

It explains the same problem, the same issues with the cookies, and a solution.