# XMPP4R and Openfire

**URL:** <https://www.ruby-forum.com/t/xmpp4r-and-openfire/158657>\
**Category:** Rails\
**Created:** [January 26, 2009, 2:01pm UTC](https://www.ruby-forum.com/t/xmpp4r-and-openfire/158657 "2009-01-26T14:01:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juan\_JosSSSS\_Vidal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/77aa72/32.png) [@Juan\_JosSSSS\_Vidal](https://www.ruby-forum.com/u/Juan_JosSSSS_Vidal)\
**Post date:** [January 26, 2009, 2:01pm UTC](https://www.ruby-forum.com/t/xmpp4r-and-openfire/158657/1 "2009-01-26T14:01:53Z")

</div>

My app sends IM with XMPP4R with Jabber accounts perfectly with this  
code, but when I want to use an Openfire problem I get an error of  
authorization

```
jid = Jabber::JID.new('removed_email_address@domain.invalid')
@client = Jabber::Client.new(jid)
@client.connect
@client.auth('xxxxxx')

```

The error:  
/Library/Ruby/Gems/1.8/gems/xmpp4r-0.4/lib/xmpp4r/client.rb:116:in  
`auth’: not-authorized (Jabber::ClientAuthenticationFailure)  
…

I didn’t find any solution searching in Google, yet.  
Where can I find a tutorial, howto???  
You know what is the problem?

Thanks in advance!
