Provide SASL authentication and anonymous for the same domain..

In my config file

i have
host_config, "localhost", [{auth_method, [odbc,anonymous]},{anonymous_protocol,sasl_anon}

but i am able to login with credentials but not as an anonymous user. I am using SmackAPI.

Some of the log messages i get

=INFO REPORT==== 13-Jul-2011::18:04:49 ===
D(<0.419.0>:ejabberd_c2s:1517) : Send XML on stream = <<"<stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.process-one.net/en/ejabberd/' ver='8P/XuMtKq0lNk50DLBC8v+TXoAU='/><register xmlns='http://jabber.org/features/iq-register'/></stream:features>">>

=INFO REPORT==== 13-Jul-2011::18:04:49 ===
D(<0.418.0>:ejabberd_receiver:320) : Received XML on stream = "<auth mechanism=\"ANONYMOUS\" xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\"></auth>"

=INFO REPORT==== 13-Jul-2011::18:04:49 ===
D(<0.418.0>:shaper:61) : State: {maxrate,1000,0,1310605489575353}, Size=76
M=38.0, I=58.91

=INFO REPORT==== 13-Jul-2011::18:04:49 ===
I(<0.419.0>:ejabberd_auth_odbc:137) : Not implemented for 13787024201310605489634402 localhost

=INFO REPORT==== 13-Jul-2011::18:04:49 ===
D(<0.419.0>:ejabberd_c2s:1517) : Send XML on stream = <<"<failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><not-authorized/></failure>">>

What is missing ?

Syndicate content