Koozali.org: home of the SME Server

Users cannot log in to webmail after upgrade to 7.4

Offline Paperguides

  • ****
  • 118
  • +0/-0
Users cannot log in to webmail after upgrade to 7.4
« 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
...

Offline gzartman

  • *
  • 306
  • +0/-0
    • LEI Engineering & Surveying
Re: Users cannot log in to webmail after upgrade to 7.4
« Reply #1 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.
----
Greg J. Zartman
LEI Engineering & Surveying

SME user and community member since 2000.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Users cannot log in to webmail after upgrade to 7.4
« Reply #2 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

Offline caf

  • 2
  • +0/-0
Re: Users cannot log in to webmail after upgrade to 7.4
« Reply #3 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

Offline christian

  • *
  • 369
  • +0/-0
    • http://www.szpilfogel.com
Re: Users cannot log in to webmail after upgrade to 7.4
« Reply #4 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.
 
SME since 2003

Offline caf

  • 2
  • +0/-0
Re: Users cannot log in to webmail after upgrade to 7.4
« Reply #5 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.

Offline christian

  • *
  • 369
  • +0/-0
    • http://www.szpilfogel.com
Re: Users cannot log in to webmail after upgrade to 7.4
« Reply #6 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.
« Last Edit: December 18, 2008, 05:55:21 PM by christian »
SME since 2003

Offline linuxhelp

  • *
  • 173
  • +0/-0
    • Linux PC & Server Support
Re: Users cannot log in to webmail after upgrade to 7.4
« Reply #7 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
« Last Edit: December 20, 2008, 12:16:02 PM by linuxhelp »
Linux PC & Server Support
http://www.linuxonlinehelp.de
.. i Love SME..

Offline christian

  • *
  • 369
  • +0/-0
    • http://www.szpilfogel.com
Re: Users cannot log in to webmail after upgrade to 7.4
« Reply #8 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?
SME since 2003

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Users cannot log in to webmail after upgrade to 7.4
« Reply #9 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline christian

  • *
  • 369
  • +0/-0
    • http://www.szpilfogel.com
Re: Users cannot log in to webmail after upgrade to 7.4
« Reply #10 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:
SME since 2003

Offline judgej

  • *
  • 375
  • +0/-0
Re: Users cannot log in to webmail after upgrade to 7.4
« Reply #11 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.
« Last Edit: January 26, 2009, 01:50:32 PM by judgej »
-- Jason

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Users cannot log in to webmail after upgrade to 7.4
« Reply #12 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?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline judgej

  • *
  • 375
  • +0/-0
Re: Users cannot log in to webmail after upgrade to 7.4
« Reply #13 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.
« Last Edit: January 26, 2009, 07:50:14 PM by judgej »
-- Jason

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Users cannot log in to webmail after upgrade to 7.4
« Reply #14 on: January 29, 2009, 12:41:22 PM »
The missing bug may be a result of the recent server issues.