Disable Buddies/Separate Virtual Host Rosters

I am trying to figure out how to disable adding buddies so that virtual hosts will only be able to utilize their shared roster. Haven't been able to figure this out from the documentation yet, any ideas?

You can try a proposed patch

osake wrote:

I am trying to figure out how to disable adding buddies so that virtual hosts will only be able to utilize their shared roster. Haven't been able to figure this out from the documentation yet, any ideas?

This feature request is tracked here: Add access rules to mod_roster.

I've implemented a patch, and I briefly tested it. If you try it, please tell me if it works correctly.

The patch can be applied to ejabberd 2.0.1 that way:

$ cd ejabberd-2.0.1/src
$ patch -p1<ejab72-roster-access.diff
patching file doc/guide.html
Hunk #1 FAILED at 2470.
1 out of 1 hunk FAILED -- saving rejects to file doc/guide.html.rej
patching file doc/guide.tex
Hunk #1 FAILED at 3165.
1 out of 1 hunk FAILED -- saving rejects to file doc/guide.tex.rej
patching file src/ejabberd_c2s.erl
Hunk #1 succeeded at 1557 (offset -16 lines).
Hunk #2 succeeded at 1568 (offset -16 lines).
Hunk #3 succeeded at 1600 (offset -16 lines).
patching file src/mod_roster.erl
Hunk #1 succeeded at 137 (offset 20 lines).
Hunk #2 succeeded at 207 (offset 20 lines).
patching file src/mod_roster_odbc.erl
Hunk #1 succeeded at 133 (offset 21 lines).
Hunk #2 succeeded at 233 (offset 21 lines).

Excellent. I'm running an

Excellent. I'm running an older version of ejabberd per pkg_add in OpenBSD, so I'll have to change all that to run the latest version and test out your patch. I'll definitely let you know once I get a chance to test it out though.

Syndicate content