مشكلة في إعداد تسجيل الدخول المجهول في 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. في configg mod_muc ، لدي
{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}]}.
وأخيرًا ، كان على اسم الغرفة في Local_settings.js من speeqe أن يكون لديه خادم الدردشة أيضًا: alpha@conference.domain.com (وليس alpha@domain.com).
لا تنتمي إلى StackOverflow