MUC permissions

Do I have any way to automatically set Anonymous users as MUC Visitors and Non-Anonymous as MUC Participants? Or I have to re-factor mod_muc? Thanks!

maxi wrote: automatically set

maxi wrote:

automatically set Anonymous users as MUC Visitors and Non-Anonymous as MUC Participants? Or I have to re-factor mod_muc? Thanks!

Here is a tricky method:
1. Ensure that non-anon users have JIDs in server "server1".
2. Ensure that anon users have JIDs in another server, for example "server2", or "anon.server1".
3. Configure the MUC room, or set as default room options in ejabberd.cfg this:
3.1. disable: members by default
3.2. disable: members only
3.3. enable: moderated
4. In the MUC room, add as member the JID: "server1"

This way, a non-anon user of server1 joins the room, is member, and gets voice. An anon user of other server is not member and doesn't have voice.

The only problem is automatizing step 4: you need to add that member to all rooms. For this you can install mod_muc_admin from ejabberd-modules SVN, and run the set_affiliation command.

Syndicate content