2010-04-18 88 views
2

在ejabberd.cfg我有以下麻煩ejabberd設立匿名登錄

{host_config, "thisislove-MacBook-2.local", [{auth_method, [internal, anonymous]}, 
          {allow_multiple_connections, false}, 
          {anonymous_protocol, both}]}. 

但使用speeqe JavaScript客戶端(speeqe.com)連接時,我看到它發送

並且服務器迴應

<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, "[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} 
    ]} 

那麼我錯過了什麼?

謝謝

回答

3

這可能會幫助某人在未來所以這裏發生了什麼。我有

{auth_method, internal}. 

,而不是

{auth_method, [internal, anonymous]}. 

我也有

{access, muc_create, [{allow, local}]}. 

,而不是

{access, muc_create, [{allow, all}]}. 

最後,在speeqe的local_settings.js房間名有也有聊天服務器:a [email protected](而不是[email protected])。

+0

索非亞,你在哪裏找到了「{access,muc_create,[{allow,all}]}」。在cfg文件中? – 2011-12-16 19:45:52

+0

嗨哈維爾,作爲參考,這裏是當前ejabberd.cfg文件的副本(只是交換了一些標識符):http://pastebin.com/PWpFwWx7。 – Sofia 2011-12-18 05:47:58