[jadmin] Re: Automating roster additions
Declan McMullen
declan.mcmullen at gmail.com
Mon Jul 24 12:52:38 CDT 2006
Just as followup to this, I have a test server that is still using mysql as
the backend, and I did manage to get it to work:
insert into `roster-items` (`collection-owner`,`jid`,`to`,`from`,`ask`)
values ('yourjid at yourhost','newjbuddyid at yourhost',1,0,0);
And the next time the user logs in they get their buddys in their list
without needing to authenticate.
I think i'll swap back to mysql and just try fix the 8 hour timeout problem,
because the ability to do that is too good to miss :)
While im here actually, do people have a preferred jabber server?
I'm noticing that ubuntu also has Version: 1.4.3-3ubuntu1 available which
comes with all the transports aswell.
I'm wondering if it might be beneficial, administrative wise, to move to
that one.
Apologies for being so noobish about all this :)
On 7/24/06, Declan McMullen <declan.mcmullen at gmail.com> wrote:
>
> 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.
>
>
>
>
>
--
http://www.computing.dcu.ie/~dmcmullen
declan.mcmullen at computing.dcu.ie
School of Computing
Postgrad Bay A
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.jabber.org/pipermail/jadmin/attachments/20060724/417a4294/attachment-0002.htm
More information about the JAdmin
mailing list