Failed authentication

Hello,

I'm having some troubles trying to connect a user to an ejabberd client. After accepting connection always says: "Failed authentication" and I don't know how to solve this. I've the user created and the ejabberd starts fine with no problems.

2017-05-11 15:46:51.146 [info] <0.752.0>@ejabberd_listener:accept:313 (#Port<0.9561>) Accepted connection ::FFFF:172.31.2.27:59603 -> ::FFFF:172.31.3.80:5222

2017-05-11 15:46:56.173 [info] <0.759.0>@ejabberd_c2s:wait_for_feature_request:757 ({socket_state,p1_tls,{tlssock,#Port<0.9561>,#Port<0.9596>},<0.758.0>}) Failed authentication for username@domain.com from IP ::FFFF:172.31.2.27

I leave here some debug reports:

2017-05-11 16:36:37.436 [info] <0.760.0>@ejabberd_c2s:wait_for_feature_request:757 ({socket_state,p1_tls,{tlssock,#Port<0.9703>,#Port<0.9738>},<0.759.0>}) Failed authentication for username@domain from IP ::FFFF:172.31.2.27
2017-05-11 16:36:37.436 [debug] <0.760.0>@ejabberd_c2s:send_text:1818 Send XML on stream = <<"">>
2017-05-11 16:36:37.458 [debug] <0.759.0>@ejabberd_receiver:process_data:343 Received XML on stream = <<"">>
2017-05-11 16:36:37.458 [debug] <0.759.0>@shaper:update:117 State: {maxrate,1000,26.578421930807508,1494516997435947}, Size=50
M=25.33670481546082, I=22.76

Thanks in advance :)

Check the account exists in

Check the account exists in that domain, and the password is correct.

For example, in the command line:

$ ejabberdctl check_password user1 localhost mypass11

$ echo $?
0

$ ejabberdctl check_password user1 localhost mypass11wrongwrong

$ echo $?
1

Another way to test this is to try to login in the webadmin. If the account details are correct, webadmin will show a simple page that says "ejabberd, admin, virtual host" with almost nothing to administer beause the user is not an admin. If the details are incorrect, it will complain and show some error.

Syndicate content