tst2005googlecode2 / lxmppd

Automatically exported from code.google.com/p/lxmppd
0 stars 0 forks source link

[mod_muc] Provide a more flexible way to configure who can create rooms #435

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently we can choose from restrict_room_creation = true / false / local.

I'd like to set it to local but also provide a way to allow another component 
(with JID like vk.domain.tld) create new rooms and invite users there. With 
"local", users at @domain.tld can create rooms, but not the transport at 
vk.domain.tld. Additional white list would be welcome.

The thing about vk.domain.tld is that it provides group chat feature and it 
needs to interact with mod_muc to translate those chats into XMPP world.

Original issue reported on code.google.com by kensuke....@gmail.com on 11 Aug 2014 at 2:36

GoogleCodeExporter commented 9 years ago
Can you not just set it as an admin of the MUC service?

  Component "conference.domain.tld" "muc"
     admins = { "vk.domain.tld" }

Admins should be able to bypass all restrictions.

Original comment by MWild1 on 11 Aug 2014 at 2:59

GoogleCodeExporter commented 9 years ago
Nope, it does not seem to work.

Original comment by kensuke....@gmail.com on 11 Aug 2014 at 4:51

GoogleCodeExporter commented 9 years ago
Ah, I missed that you places admins = under Component section, let me try again.

Original comment by kensuke....@gmail.com on 11 Aug 2014 at 4:51

GoogleCodeExporter commented 9 years ago
Yes, this way it works.

Original comment by kensuke....@gmail.com on 11 Aug 2014 at 4:54

GoogleCodeExporter commented 9 years ago
Sorry, I forgot to change the resctriction back to "local".
Finally, with "local" and admins set, the room is not created.

Original comment by kensuke....@gmail.com on 11 Aug 2014 at 4:58

GoogleCodeExporter commented 9 years ago
Which version of Prosody?

Original comment by MWild1 on 11 Aug 2014 at 4:59

GoogleCodeExporter commented 9 years ago
Prosody 0.9.4.

Original comment by kensuke....@gmail.com on 11 Aug 2014 at 5:03

GoogleCodeExporter commented 9 years ago
Well, I added 12345@vk.domain.tld to admins where 12345 is my id in the social 
media (for which the transport is for). It works this way with "local" 
restriction mode, but this is not universal. 
Is it possible to use wildcards?

Original comment by kensuke....@gmail.com on 11 Aug 2014 at 8:42