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

Chris Pile cpile at snoogans.co.uk
Thu Jul 18 10:23:56 CDT 2002


Here is a template that I use when creating users with a script.
You don't need the vcard/jabberim stuff but thought you might find it useful.

Also choose your client carefully.  I required a client that supported SSL, plaintext auth and
 one that doesn't save the password as plain text on the client machine.

Also you might find my chatroom nick name restriction patch useful:
http://www.snoogans.co.uk/jabber/index.htm#nick

Helps prevent naughty ppl pretending to be the MD in your conference rooms ;)


Thanks,
Chris Pile

----

<xdb>
  <password xmlns='jabber:iq:auth' xdbns='jabber:iq:auth'>*</password>
  <vCard prodid='3.0' xmlns='vcard-temp' xdbns='vcard-temp'>
    <FN>-FIRST- -LAST-</FN>
    <N>
      <GIVEN>-FIRST-</GIVEN>
      <FAMILY>-LAST-</FAMILY>
    </N>
    <NICKNAME>-FIRST-_-LAST-</NICKNAME>
    <EMAIL><INTERNET/><PREF/>-EMAIL-</EMAIL>
  </vCard>
  <query xmlns='jabber:iq:roster' xdbns='jabber:iq:roster'>
    <item jid='foo at jabber.example.com' name='foo_bar' subscription='both'><group>support</group></item>
  </query>
  <foo xdbns='jabber:xdb:nslist' xmlns='jabber:xdb:nslist'>
    <ns type='private'>jabberim:prefs</ns>
  </foo>
  <jabberim xmlns='jabberim:prefs' ShowLogonServerInfo='false' BringToTop='false' PopChatWindows='false' ShowFilters='4' NoMessageLogging='true' DeleteLogs='true' UseP2P='true' DAVServer='files.jabber.example.com' DAVPath='' DAVPort='80' xdbns='jabberim:prefs'>
    <TextConfHistory S0='chitchat at conference.jabber.example.com' S1='jabber_support at conference.jabber.example.com' S2='internal_support at conference.jabber.example.com' S3='technical_support at conference.jabber.example.com'/>
  </jabberim>
</xdb>



More information about the JDev mailing list