-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[join] Can join password-protected room with incorrect passwords #74
Comments
Ah, yes it's somewhat a problem of your ejabberd config: Therefore, when Bob joins, the temp room is still public & the password you send with has no effect. If you want to have password protected rooms, you need to create them on the server & assign a password to it. AFAIK there's a module called mod_muc_admin which should help in creating persistent & password protected rooms. |
On Thu, Jan 23, 2014 at 4:26 PM, Michael Weibel
I see, but I would like an anonymous user to be able to create private Thanks. Johan |
Ah, ok I understand. Well yes this is possible with ejabberd (or better: with every XMPP server, as it's in the standard). You'd need to change the I don't know if @maennchen is willing to do this or if you'd like to do it. I currently have only limited time for Candy and I rather work not on the plugins currently. |
@mweibel I can make this change, but my Problem is that i have no understanding of XMPP at all. Someone would've to help me how to achieve this. |
Great. I don't have time this week but I can definitively help next week. |
Great |
I'm back on business. Sorry for the delay, I had to work on something else, which I did finish Today ;-) |
Nope, i've done nothing until now.Tommorrow i dont't habe time, but the rest of the week. |
After reading the XEP section shared by @mweibel, and browsing a bit Candy.Core and Strophe.js source code, I think there is two ways of implementing private room creation:
The issue with 2 is that anyone can join the room before the owner has modify its configuration to make it private. |
Hi, Point#1: I guess that would be a good option. I could add a default handler + emit an event in this case. I'll take a look, maybe I can implement something like this in the refactoring branch. Subsequent room configuration should also work with solution#1, as it works anyway. Question is how you'd like to do it because you might need to parse the form configuration and make a dynamic form within a modal in it (should be possible, it's just some work to do) |
Hi, |
I saw a reference to Strophe.muc.js plugin once, and after looking at how they handle the join (https://github.com/strophe/strophejs-plugins/blob/master/muc/strophe.muc.coffee), I'm wondering why candy doesn't use this plugin, instead of re-implementing its own MUC support? |
we currently don't use it a lot because it's buggy and Pull requests don't get merged in. I'm considering, as part of the refactoring branch, to fork it and use our version of the muc plugin. |
You might want to look into reserved rooms to resolve the race in configuring. |
I'm not 100% sure it's a bug of the join plugin and not of my ejabberd configuration, but I'm able to join a password-protected room without the correct password.
I attach the log of the following session:
Alice's Javascript console: http://pastebin.com/cYmvdDXk
Bob's Javascript console: http://pastebin.com/ChpZf03z
The text was updated successfully, but these errors were encountered: