Dans ejabberd.cfg je les suivantesdes difficultés pour configurer une connexion anonyme à ejabberd
{host_config, "thisislove-MacBook-2.local", [{auth_method, [internal, anonymous]},
{allow_multiple_connections, false},
{anonymous_protocol, both}]}.
mais lorsque vous utilisez speeqe javascript client (speeqe.com) pour se connecter, je vois qu'il envoie
et le serveur répond avec
<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>
Remarquez les mécanismes, DIGEST-MD5 & PLAIN. Si je ne me trompe pas, il devrait aussi avoir un mécanisme ANONYME. Donc, ce qui se passe est que speeqe met simplement fin à la connexion. En tant que tel, je pense que je dois manquer quelque chose dans la configuration anonyme ou la config muc. Dans le config mod_muc, j'ai
{mod_muc, [
%%{host, "[email protected]@"},
{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 qui me manque?
Merci
Sofia, où avez-vous trouvé "{access, muc_create, [{allow, all}]}." dans le fichier cfg? –
Salut Javier, pour référence, voici une copie du fichier ejabberd.cfg actuel (juste échangé quelques identifiants): http://pastebin.com/PWpFwWx7. – Sofia