[jadmin] Automating roster additions

Declan McMullen declan.mcmullen at gmail.com
Mon Jul 24 11:10:36 CDT 2006


Hi All,
   I recently setup a jabber server for our college networking society (as
you could probably tell by my posting I was new to this :) )
Everything is working nicely, its secure and its authenticating off our ldap
server etc. But now I've a usability problem, or more a keep users happy
problem :)

All of our users login to a console on a linux server, and talk to each
other using a console based program. It was something created long ago which
literally bufferes up message so they can be piped through the write
program. In addition to this we had a modified version of the users program,
to list online users, that could color code your friends in the output. This
was done using a .friends file in the users home directory.

Now heres the problem, upon moving to jabber all users will have an empty
roster, I would like them to be able to populate their roster with the
contens of their jabber file, without the need to manually add all of their
friends and have them authorize the additions. I do not want to add every
user on the system into the default roster template (i added myself in so
that anyone who tried the system [being trialled] will have at least 1
buddy), because we have hundreds of users. I ONLY want to let people auto
populate their friends to their rosters.

So I was thinking of writing a small script that would parse the .friends
file from the users account and populate their buddy list.
Where I am falling down is I am unsure how to actually manipulate their
buddy list.

I am using berkeley db as a storage mechanism as mysql was giving me some
problems, plus I didnt want our IM system to have to rely on the uptime of
mysql. I am presuming that if it was still mysql I could just find the table
for that user and insert the jids into their their roster.
If that is the case can I do the same thing with berkely db? Is there
anywhere I can find out where the roster for each users is stored in the
berkely db system?


Any information is much appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.jabber.org/pipermail/jadmin/attachments/20060724/5f763511/attachment-0003.htm


More information about the JAdmin mailing list