New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error Jabber::ClientAuthenticationFailure: not-authorized using xmpp4r and openfire #42
Comments
Which tutorial are you referring to? |
I am having the same problem. Here is debug output: D, [2016-01-06T11:34:07.952396 #3808] DEBUG -- : RESOLVING: |
wonderer007, what version of Openfire are you using? We are using 3.10.3. We used to use Openfire 3.6.4, and after upgrade to 3.10.3, the gem started failing to connect. |
In case this helps anyone else, doing this worked:
Otherwise, the plain old client.auth method tries to do message digest if the server offers it. |
I am using Openfire and xmpp4r to connect to server with the help of tutorial. This tutorial is working fine for everyone except me, its throwing error on line
@client.auth(@password)
Error is
Jabber::ClientAuthenticationFailure: not-authorized
from /home/haider/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/xmpp4r-0.5.6/lib/xmpp4r/client.rb:120:in
rescue in auth' from /home/haider/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/xmpp4r-0.5.6/lib/xmpp4r/client.rb:109:in
auth'from (irb):32
from /home/haider/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-4.2.0/lib/rails/commands/console.rb:110:in
start' from /home/haider/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-4.2.0/lib/rails/commands/console.rb:9:in
start'from /home/haider/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:68:in
console' from /home/haider/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in
run_command!I Google and found a solution which resolve similar problem appending resource name with JID but this too is not working for Openfire
Any help will be highly appreciated. Thanks
The text was updated successfully, but these errors were encountered: