On 24/06/08 at 10:45 -0300, Leonardo Boiko wrote:
> Hi.  I can't authenticate to a dreamhost jabber account.  This is what I get:
> 
> 
> c = Client.new(JID::new('[EMAIL PROTECTED]')); c.connect; c.auth('testtest')
> 10:28:02 SENDING:
>     <stream:stream xmlns:stream='http://etherx.jabber.org/streams'
> xmlns='jabber:client' to='namakajiri.net'>
> 10:28:02 RECEIVED:
>     <stream:stream from='namakajiri.net'
> xmlns:stream='http://etherx.jabber.org/streams' id='4860F662'
> xmlns='jabber:client'/>
> 10:28:02 SENDING:
>     <iq type='set'><query
> xmlns='jabber:iq:auth'><username>test</username><digest>0c65e1ed9c32b818cf30fecd3f7b1022c03175fd</digest></query></iq>
> 10:28:02 RECEIVED:
>     <iq type='error' id='pthsock_client_auth_ID'><query
> xmlns='jabber:iq:auth'><username>test</username><digest
> sid='4860F662'>0c65e1ed9c32b818cf30fecd3f7b1022c03175fd</digest></query><error
> code='406'>Not Acceptable</error></iq>
> Jabber::AuthenticationFailure: Client authentication failed
>       from /usr/lib/ruby/1.8/xmpp4r/client.rb:73:in `auth'
>       from (irb):14
> 
> The account and password are real, so you can try it yourself.  This
> log is from 0.2-3build1 in ubuntu dapper, but I tried current debian
> sid and got the same results.  I can log in to the account with other
> jabber clients.
> 
> Am I doing something wrong?

Yes, you need to specify a ressource.
c = Client.new(JID::new('[EMAIL PROTECTED]/res')); c.connect;
c.auth('testtest')
works fine.
-- 
| Lucas Nussbaum
| [EMAIL PROTECTED]   http://www.lucas-nussbaum.net/ |
| jabber: [EMAIL PROTECTED]             GPG: 1024D/023B3F4F |

_______________________________________________
Xmpp4r-devel mailing list
[email protected]
https://mail.gna.org/listinfo/xmpp4r-devel

Reply via email to