ejabberdで匿名ログインのセットアップの問題
-
27-09-2019 - |
質問
ejabberd.cfgでは、次のことがあります
{host_config, "thisislove-MacBook-2.local", [{auth_method, [internal, anonymous]},
{allow_multiple_connections, false},
{anonymous_protocol, both}]}.
しかし、speeqe javascriptクライアント(speeqe.com)を使用して接続すると、送信されるのがわかります
<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'/>
そして、サーバーは応答します
<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>
メカニズム、Digest-MD5&Plainに注意してください。私が間違っていなければ、それはメカニズムとしても匿名を持っているはずです。だから何が起こるかということは、Speeqeが単に接続を終了するということです。
そのため、匿名の構成またはMUC構成で何かが欠けているに違いないと思っています。 mod_muc configgには、持っています
{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}
]}
それで、私は何が欠けていますか?
ありがとう
解決
これは将来誰かを助けるかもしれないので、ここに何が起こっているのかがあります。私は持っていた
{auth_method, internal}.
それ以外の
{auth_method, [internal, anonymous]}.
私も持っていました
{access, muc_create, [{allow, local}]}.
それ以外の
{access, muc_create, [{allow, all}]}.
そして最後に、Speeqeのlocal_settings.jsの部屋名には、チャットサーバーも持っていなければなりませんでした:alpha@conference.domain.com(およびalpha@domain.comではなく)。
所属していません StackOverflow