lalves wrote:
If I understood right, you can connect chat using admin user but other users cannot use the chat? If is that the case, check chat permissions under Chat Permissions. Under Chat Permissions you can define the group that is allowed to use the chat.
U understood right but allowing all users to use the module didn't help.
I allowed "all users" for the first time, also tried to allow a specific user, but none helped.
Now its much clearer anyway, since after a reboot, no user can use the chat at all. Not even admin.
I'm getting slowly why this module is unsupported... :/
What do I have to change???
/usr/share/groupoffice/modules/chat/ChatModule.php :
------
public static function getBoshUri() {
$jabberHost = '192.168.1.82';
$boshUri = 'https://' . $jabberHost . ':5281/http-bind';
$proto = GO::request()->isHttps() ? 'https' : 'http';
$port = GO::request()->isHttps() ? 5281 : 5280;
return isset(GO::config()->chat_bosh_uri) ? GO::config()->chat_bosh_uri : $proto . '://' . self::getXmppHost() . ':' . $port . '/http-bind';
}
public static function getXmppHost() {
$jabberHost = '192.168.1.82';
return isset(GO::config()->chat_xmpp_host) ? GO::config()->chat_xmpp_host : $_SERVER['HTTP_HOST'];
}
root@mail:~# ls -ltr /etc/groupoffice/config.php
-rw-r--r-- 1 root www-data 902 máj 15 21:24 /etc/groupoffice/config.php
-------
/etc/prosody/prosody.cfg.lua lines 134-158/220 :
-------
authentication = "external"
external_auth_command = "/usr/bin/GroupOfficeProsodyAuth.php"
external_auth_protocol = "generic"
cross_domain_bosh = true
consider_bosh_secure = true -- trust bosh connection
bosh_ports = {
{
port = 5280;
path = "http-bind";
interface = "192.168.1.82";
}
}
--------
Client machine /etc/hosts:
192.168.1.82 <our.domain.name>
Same for the server
Chat module permissions as in the image:
https://goo.gl/photos/VfL5nh5Ttn6qAhQm8