[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jabber-jdev
Subject:    [jdev] (no subject)
From:       Javid Taheri <Javid.Taheri () nicta ! com ! au>
Date:       2008-11-07 3:49:50
Message-ID: F725E2812CCF1E4B9737F9E5B6E9861A28FF316E03 () atp-mbx1 ! in ! nicta ! com ! au
[Download RAW message or body]

Hi

I wrote a very simple code in Ruby to register a new user.
I doesn't work.

++++++++++++++++++++++++++
Ruby code

require 'rubygems'
require 'xmpp4r'

include Jabber


c = Client.new(JID.new('newuser@norbit.npc.nicta.com.au/Ruby'))
password='123'
c.connect
c.register(password)
+++++++++++++++++++++++++

I can authenticate as an already existed used, but I cannot register new users. I set \
the register.inband=true in my local Openfire server as well.

Here is the error I receive
/usr/lib/ruby/1.8/xmpp4r/stream.rb:389:in `send_with_id': bad-request:  \
(Jabber::ServerError)  from /usr/lib/ruby/1.8/xmpp4r/client.rb:283:in `register'
        from r4.rb:24


Anybody knows why?

Thanks
Javid
_______________________________________________
JDev mailing list
FAQ: http://www.jabber.org/discussion-lists/jdev-faq
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: JDev-unsubscribe@jabber.org
_______________________________________________


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic