des difficultés pour établir des connexions anonymes dans ejabberd
-
27-09-2019 - |
Question
Dans ejabberd.cfg je les
{host_config, "thisislove-MacBook-2.local", [{auth_method, [internal, anonymous]},
{allow_multiple_connections, false},
{anonymous_protocol, both}]}.
mais lorsque vous utilisez speeqe client javascript (speeqe.com) pour se connecter, je vois qu'il envoie
<body rid='1366284187' xmlns='http://jabber.org/protocol/httpbind' to='thisislove-macbook-2.local' xml:lang='en' wait='60' hold='1' window='5' content='text/xml; charset=utf-8' ver='1.6' xmpp:version='1.0' xmlns:xmpp='urn:xmpp:xbosh'/>
et les serveurs avec répond
<body xmlns='http://jabber.org/protocol/httpbind' sid='f89bf034b02fa6b884bb0c55be3f1f69e45e3866' wait='60' requests='2' inactivity='30' maxpause='120' polling='2' ver='1.8' from='thisislove-macbook-2.local' secure='true' authid='353072658' xmlns:xmpp='urn:xmpp:xbosh' xmlns:stream='http://etherx.jabber.org/streams' xmpp:version='1.0'><stream:features xmlns:stream='http://etherx.jabber.org/streams'><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism></mechanisms><register xmlns='http://jabber.org/features/iq-register'/></stream:features></body>
Notez que les mécanismes, DIGEST-MD5 et PLAIN. Si je ne me trompe pas, il devrait avoir ANONYME comme un mécanisme aussi bien. Alors qu'est-ce qui se passe est que speeqe termine simplement la connexion.
En tant que tel, je pense que je dois manquer quelque chose dans la configuration anonyme ou la configuration CUM. Dans le configg mod_muc, j'ai
{mod_muc, [
%%{host, "conference.@HOST@"},
{access, muc},
{access_create, muc},
{access_persistent, muc},
{access_admin, muc_admin},
{max_room_name, 190},
{max_room_desc, 190},
{max_users, 500}
]}
Alors qu'est-ce que je manque?
Merci
La solution
Ce que quelqu'un pourrait aide à l'avenir voici donc ce qui se passait. J'avais
{auth_method, internal}.
au lieu de
{auth_method, [internal, anonymous]}.
J'ai aussi
{access, muc_create, [{allow, local}]}.
au lieu de
{access, muc_create, [{allow, all}]}.
Et enfin, le nom de chambre dans local_settings.js de speeqe devait avoir le serveur de chat ainsi:. Alpha@conference.domain.com (et non alpha@domain.com)