anonymous not authorized

Justin Karneges
Added over 5 years ago

When I try to use anonymous authentication with sleekxmpp, tigase responds with not-authorized. This is using the default config with nothing special. Tigase version 5.2.0 beta3.

Here is sleek's debug output:

DEBUG RECV: PLAINANONYMOUSzlib/stream:features

INFO SASL: PLAIN: PLAIN without encryption



INFO Authentication failed: not-authorized

How can anonymous ever be unauthorized? :)

Replies (4)

Added by Wojciech Kapcia TigaseTeam over 5 years ago

SENT: <auth mechanism="ANONYMOUS" xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
RECV: <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>

Maybe try without any token within ?

Added by Justin Karneges over 5 years ago

Indeed, if I try manually with telnet this works.

However, I'm not sure if this is adjustable from sleekxmpp. The token (aka anonymous trace info) is coming from the underlying SASL library. As far as I know this is valid to send, so I think this is a bug in tigase. It should just ignore the content rather than failing.


Added by Bartosz Małkowski TigaseTeam over 5 years ago

Server does not ignore trace data. If element isn't empty Server throws exception.

Anyway, this bug is fixed already in df4f2614

Added by Justin Karneges over 5 years ago

Thanks, it works.