I setup the configuration file but jabber clients keep giving me an Authentication Error: Not Authorized
Here is my domain setting and login:
{hosts, ["cooprentals.com"]}.
{host_config, "cooprentals.com", [{auth_method, [internal,anonymous]},
{allow_multiple_connections, false},
{anonymous_protocol, login_anon}]}.
I can login with a registered user fine...but not with
What else could be missing?
Here is what my log file
Here is what my log file returned..
=INFO REPORT==== 2008-09-19 14:28:19 ===anon@cooprentals.com
I(<0.435.0>:ejabberd_c2s:710) : ({socket_state,tls,{tlssock,#Port<0.418>,#Port<0.420>},<0.434.0>}) Failed authentication for
Ok, I have tried everything
Ok, I have tried everything to no avail....I'll wait for some expert advise. Thanks.
Ok, here is some more
Ok, here is some more feedback..
It works if I run a test script on the server so anonymous is working from localhost:5222
It does not allow anonymous logins from JWChat web client 5280 or my PSI windows client 5222 or 5223.
So it appears something is not allowing anonymous logins from external IP's or connections?
Hope this helps. I still have not figured out what to do about it.
looks like a client problem
It says the client is supposed to respond to the streams information by choosing mechanism="ANONYMOUS". In my protocol dumps for jwchat I'm seeing jwchat choose mechanism="DIGEST-MD5" automatically without waiting to see what mechanisms are supported. Obvious conclusion then is that either http-bind or jwchat does not support anything but DIGEST-MD5.
I saw a similar issue with pidgin where the server send ANONYMOUS as a supported stream method but pidgin still sent DIGEST-MD5 back.
So short answer is that it appears many clients do not support anonymous login.
Enable saslanon in jwchat
It looks like you have to tell jwchat to use 'saslanon' or it will use normal login. To do this use:
oArgs.authtype = 'saslanon'
in the code that performs the login. If you want to do registered logins as well you might want to set that via a form input.
Two experiments and results
If I put this:
I can:
If I put this:
I can:
I only tried those configurations. I used Tkabber and ejabberd trunk svn. I only tried the client in the same machine that the server.
I didn't try the protocol sasl_anon because it requires a client that supports SASL Anonymous, and I only know a client that implements that: MUCkl.
I'm using the Psi Client and
I'm using the Psi Client and JWChat installed on the server. Both will login if an account exists..but I'm getting Authentication Failed if logging in anonymously.