Author Topic: eGroupware calendar invitation links incorrect  (Read 5011 times)

Sam Graf

  • Guest
eGroupware calendar invitation links incorrect
« on: September 04, 2009, 05:09:34 pm »
Hi,

This was brought up at least once before, but I've gotten to the place on my to-do list where I really must fix the calendar links, so they no longer point to localhost. According to this post at the eGroupware forum, the cause is misconfiguration of eGroupware. Since we don't use the eGroupware setup utility, I really think this falls under the header of eBox integration. Somehow we need to be able to supply, among the eBox Groupware configuration options, either an IP address or a domain name that will replace localhost. Temporarily it would work to know where to make a manual edit.

Help on this would be greatly appreciated. Long term I simply cannot keep asking staff to "note the date and navigate there via the calendar to respond to an invitation." Especially not when the software could work correctly if properly configured.

Thanks!

Sam
« Last Edit: September 04, 2009, 05:12:15 pm by Sam Graf »

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: eGroupware calendar invitation links incorrect
« Reply #1 on: September 07, 2009, 01:30:37 am »
Hi,

eGroupware has a command-line configuration utility (/usr/share/egroupware/setup/setup-cli.php) and one of its options is "--webserver-url", eBox passes "/egroupware" as value, maybe you can try to pass a full url "http://ip/egroupware", but I've not tried it. Maybe I'll have a look at that tomorrow, if you can try and give some feedback it would be really appreciated.

Regards,

J. A. Calvo
Zentyal Server Lead Developer

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: eGroupware calendar invitation links incorrect
« Reply #2 on: September 07, 2009, 01:32:47 am »
Another possibility is to edit the /usr/share/ebox/stubs/egroupware/header_inc.php.mas and change the "db_host" variable from localhost to another hostname. But I'm not sure if it's related.
Zentyal Server Lead Developer

Sam Graf

  • Guest
Re: eGroupware calendar invitation links incorrect
« Reply #3 on: September 07, 2009, 03:13:27 am »
... change the "db_host" variable from localhost to another hostname ...
I thought about changing that variable in header_inc.php (just to see what would happen) but I wasn't at a test box at the time and wasn't brave enough to try it on a production machine. I wasn't sure if the DB connection would survive a change to a LAN address.

... if you can try and give some feedback it would be really appreciated.
I would be very happy to give that a try. I'm sorry that it will not be before Tuesday, but as soon as I can give that a look I will and report back.

Thank you for your help. :)

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: eGroupware calendar invitation links incorrect
« Reply #4 on: September 07, 2009, 12:04:25 pm »
I don't really think that changing the db_host will work, the only hope is to change the webserver-url, if you want to change it permanently you can edit /usr/share/ebox-egroupware/ebox-egroupware-setup.
Zentyal Server Lead Developer

Sam Graf

  • Guest
Re: eGroupware calendar invitation links incorrect
« Reply #5 on: September 11, 2009, 11:27:23 pm »
Many apologies for taking so long to get back to this. :-[

On trying setup-cli.php --webserver-url I got the following:

Quote
An error happend: Unknown option '--webserver-url' !!!

I also took a look at ebox-egroupware-setup and see where to make the edit. What I don't know is the effect of making the edit. Is there something I need to do after making the edit? Is there something I should be aware of before making the edit? Since I can recover from the edit as far as the file goes, if I need to, I don't mind giving it a try--just so I'm doing it correctly.

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: eGroupware calendar invitation links incorrect
« Reply #6 on: September 12, 2009, 12:57:06 pm »
You have to add "--config" before, I think if you run the script without arguments, or with "--help", you will see which is the proper syntax.
Zentyal Server Lead Developer

cheesyking

  • Zen Warrior
  • ***
  • Posts: 148
  • Karma: +1/-0
    • View Profile
Re: eGroupware calendar invitation links incorrect
« Reply #7 on: October 01, 2009, 01:44:28 pm »
I can confirm that this fixes the problem:

sudo ./setup-cli.php --config default,ebox --webserver-url http://your.domain.name.com/egroupware

for those who don't already know you'll be asked for the ebox-egroupware setup password which you can find with:

sudo cat /var/lib/ebox/conf/ebox-egroupware.passwd 

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: eGroupware calendar invitation links incorrect
« Reply #8 on: October 01, 2009, 01:57:09 pm »
Thanks for your feedback!

Maybe we can add a option in the eGroupware config in eBox to specify the domain name. I'll add it to the wishlist.

Regards,

J. A. Calvo
Zentyal Server Lead Developer

Sam Graf

  • Guest
Re: eGroupware calendar invitation links incorrect
« Reply #9 on: October 03, 2009, 08:57:52 pm »
I am unable to make this work as the password is not accepted.

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: eGroupware calendar invitation links incorrect
« Reply #10 on: October 03, 2009, 09:37:30 pm »
Try this:

sudo -s
EGW_PASS=`cat /var/lib/ebox/conf/ebox-egroupware.passwd`
cd /usr/share/egroupware/setup
./setup-cli.php --config default,ebox,$EGW_PASS --webserver-url http://yourdomain.com/egroupware

Hope this helps!

Regards,

J. A. Calvo
Zentyal Server Lead Developer

Sam Graf

  • Guest
Re: eGroupware calendar invitation links incorrect
« Reply #11 on: October 04, 2009, 01:58:08 am »
Thanks for the suggestion. Here's the exact error response:

Quote
Permission denied!: Access denied: wrong username or password to configure the domain 'default(pgsql)' !!!

The entire response is as follows:

Quote
PHP Warning:  Module 'imap' already loaded in Unknown on line 0
Permission denied!: Access denied: wrong username or password to configure the domain 'default(pgsql)' !!!
#0 /usr/share/egroupware/setup/inc/class.setup_cmd_config.inc.php(58): setup_cmd::check_setup_auth('ebox', 'cat', 'default')
#1 /usr/share/egroupware/admin/inc/class.admin_cmd.inc.php(169): setup_cmd_config->exec()
#2 /usr/share/egroupware/setup/setup-cli.php(154): admin_cmd->run()
#3 /usr/share/egroupware/setup/setup-cli.php(73): do_config(Array)
#4 {main}
Permission denied!: Access denied: wrong username or password to configure the domain 'default(pgsql)' !!!
#0 /usr/share/egroupware/setup/inc/class.setup_cmd_config.inc.php(58): setup_cmd::check_setup_auth('ebox', 'cat', 'default')
#1 /usr/share/egroupware/admin/inc/class.admin_cmd.inc.php(169): setup_cmd_config->exec()
#2 /usr/share/egroupware/setup/setup-cli.php(154): admin_cmd->run()
#3 /usr/share/egroupware/setup/setup-cli.php(73): do_config(Array)
#4 {main}

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: eGroupware calendar invitation links incorrect
« Reply #12 on: October 04, 2009, 02:08:27 am »
Have you changed the default password that eBox generates for the eGroupware admin user?
Zentyal Server Lead Developer

Sam Graf

  • Guest
Re: eGroupware calendar invitation links incorrect
« Reply #13 on: October 04, 2009, 02:39:09 am »
Not to my knowledge, and certainly not intentionally. I don't even know where to make such a change.


cl0s

  • Zen Apprentice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: eGroupware calendar invitation links incorrect
« Reply #14 on: December 01, 2009, 08:54:45 pm »
wont this get overwritten once you restart ebox as it will overwrite it with the .mas file?