View other groups(shared rosters) from another domain

Here's my setup
2 virtual hosts (domain1, domain2)

I have different groups/shared rosters for each domain e.g. domain1 has Management and HR group while domain2 has IT group.

How can users from domain1 be able to see the IT group from domain2 without users manually adding IT users from the IT group and vice versa.

When new users are created in domain1, they should be able to see 3 groups on their jabber client(psi), Management, HR and IT.

How can I make this work? Thanks

Same response that in the

Same response that in the ejabberd mailing list:

I've uploaded a new patch to
https://support.process-one.net/browse/EJAB-506
that supports the syntax groupid@vhost in displayed_groups.

That patch would allow this to work:
In domain1 create the group ma with some members and display: hr it@domain2
In domain1 create the group hr with some members and display: ma it@domain2
In domain2 create the group it with member: @all@ and display:
ma@domain1 hr@domain1
You will have to constantly add members to ma and hr.

Or more automatic:
In domain1 create the group mahr with member: @all@ and display: it@domain2
In domain2 create the group it with member: @all@ and display: mahr@domain1

Thanks for the response.

Thanks for the response. Should I use both 506-allhost.diff and 506-displayhost.diff?

Also, I'm sorry I'm not familiar on installing or using a diff file. I just used the Ejabberd's packaged installer from the site. Can I just add the patch or do I need to reinstall Ejabberd but this time from source code instead of the .bin installer?

Thanks again.

ejabb3rd wrote: Should I use

ejabb3rd wrote:

Should I use both 506-allhost.diff and 506-displayhost.diff?

Only 506-displayhost.diff

ejabb3rd wrote:

Also, I'm sorry I'm not familiar on installing or using a diff file. I just used the Ejabberd's packaged installer from the site. Can I just add the patch
or do I need to reinstall Ejabberd
but this time from source code instead of the .bin installer?

The patch only modifies the file mod_shared_roster.erl You can get that file from ejabberd source code, apply the patch to the file, compile the file, copy the result beam to your current installation, and restart ejabberd.

Sorry for the late reply

Sorry for the late reply badlop..
It worked for me! Thanks

No bugs so far, I'll report them if I found one.

I'm concerned though about the output during patching.."Hunk #1 FAILED at 4087.", or should I just ignore that?

root@im-test:~/ejabberd-2.1.8/src# patch -p 506 < 506-displayhost.diff 
can't find file to patch at input line 16
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From 71c844a64ed9d334752b00febeb2f7391ea7c56e Mon Sep 17 00:00:00 2001
|From: Badlop 
|Date: Wed, 27 Jul 2011 10:20:22 +0200
|Subject: [PATCH] Preliminary support for groupname@vhost in Displayed Groups
| (EJAB-506)
|
|---
| doc/guide.tex             |    5 +++--
| src/mod_shared_roster.erl |   17 ++++++++++++++---
| 2 files changed, 17 insertions(+), 5 deletions(-)
|
|diff --git a/doc/guide.tex b/doc/guide.tex
|index 5939a9e..c0b5be9 100644
|--- a/doc/guide.tex
|+++ b/doc/guide.tex
--------------------------
File to patch: mod_shared_roster.erl
patching file mod_shared_roster.erl
Hunk #1 FAILED at 4087.
1 out of 1 hunk FAILED -- saving rejects to file mod_shared_roster.erl.rej
can't find file to patch at input line 32
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/src/mod_shared_roster.erl b/src/mod_shared_roster.erl
|index 286cac9..454db73 100644
|--- a/src/mod_shared_roster.erl
|+++ b/src/mod_shared_roster.erl
--------------------------
File to patch: mod_shared_roster.erl
patching file mod_shared_roster.erl

You better: cd

You better:

cd ejabberd-2.1.8
patch -p1 < 506-displayhost.diff
cd src
make
...

Syndicate content