I want to enabled SASL Anonymous authentication for my ejabberd server. I have try to change some values in ejabberd.cfg file like this :
{host_config, "my.ejabberd.host", [{auth_method, [internal, anonymous]},
{allow_multiple_connections, false},
{anonymous_protocol, both}]}.
But when I tried to login using strophe js with username my.ejabberd.host and blank password, it will always failed to login. I try to use firebug to capture the server response, and this is the response :
<body xmlns="http://jabber.org/protocol/httpbind" sid="4b6a6012819c4431fb35f5e4c8470dcea8640770" wait="60" requests="2" inactivity="30" maxpause="120" polling="2" ver="1.8" from="devk-pc-005" secure="true" authid="1440276434" 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>PLAIN</mechanism>
<mechanism>DIGEST-MD5</mechanism>
<mechanism>SCRAM-SHA-1</mechanism>
</mechanisms>
<c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="http://www.process-one.net/en/ejabberd/" ver="wwrSvLFOLzC92POh074kJuEqYxE="></c>
<register xmlns="http://jabber.org/features/iq-register"></register>
</stream:features>
</body>
As we can see, it still using mechanism PLAIN, which it should be anonymous if I'm not wrong.
Note: I follow the instruction in here :
http://www.ejabberd.im/Anonymous-users-support
but still no luck :(
I have restart the ejabberd server too, and still no luck :(
Please somebody help me.
Thanks and Regards.