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('[EMAIL PROTECTED]/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: [EMAIL PROTECTED]
_______________________________________________

Reply via email to