[JDEV] Automatically creating users + roster entries..?

Steve Kemp skx at tardis.ed.ac.uk
Thu Jul 18 09:54:20 CDT 2002


Hi All,

  I'm attempting to switch our company over to using Jabber internally
 instead of ICQ.  This is because jabber allows us to do everything we
 need and has provision for group chat, which will come in very handy.

  To simplify the situation for everybody I'd like to create initial
 accounts for all our users, and populate the directory, and rosters
 in advance of giving the users the clients.

  I've written a few .xml files in the spool directory, but I'm finding
 that I can't login with the details - is my XML wrong, or am I missing
 something?

   eg.  For the user 'fred' I've written the following in spool/'hostname':

	<xdb>
	<query xmlns='jabber:iq:auth'>
	<username>fred</username>
	<password>fredfred</password>
        </query>
	<query xmlns='jabber:iq:roster' xdbns='jabber:iq:roster'>
	<item jid='barny at hostname' name='Christopher Aldridge' subscription='both'><group>A department</group></item>
	</query>
	</xdb>

  There you see that I've attempted to setup the username + password, and one
 contact.  (In my real files I use the correct hostname, and I've inserted
 ~50 contacts into the roster sections - Also the whole file is one line,
 no linebreaks).

  Any ideas greatfully recieved..

Steve
---
www.steve.org.uk





More information about the JDev mailing list