[jdev] (no subject)
Javid Taheri
Javid.Taheri at nicta.com.au
Thu Nov 6 21:49:50 CST 2008
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 at 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
More information about the JDev
mailing list