creating groups and chats from LDAP

Hi all,

I've just created an ejabberd module that grabs groups defined in LDAP and generates and populates shared roster groups in ejabberd. Its part a client's ID management project. Is there interest in having this module as open source?

Also, I wan't to add a feature to automatically create chat rooms based on certain attributes of groups in LDAP .. does anyoine have any example code of how to use mod_muc to create rooms .. the code doco is a bit sparse.

Cheers
Sam Stainsby.

Re: creating groups and chats from LDAP

stainsby wrote:

I've just created an ejabberd module that grabs groups defined in LDAP and generates and populates shared roster groups in ejabberd. Its part a client's ID management project. Is there interest in having this module as open source?

Yes, why not? The more code, the better ;-)

stainsby wrote:

Also, I wan't to add a feature to automatically create chat rooms based on certain attributes of groups in LDAP .. does anyoine have any example code of how to use mod_muc to create rooms .. the code doco is a bit sparse.

I think you need to start with reading the Bookmark Storage JEP.

Re: creating groups and chats from LDAP

I'm no so concerned with adding each room as a 'bookmark' (yet - but this will be useful later). Just creating the rooms for a start would be good.

I discovered this morning

I discovered this morning that if you delete a shared roster group (SRG) through mod_shared_roster:delete_group and then create a new one with the same name using mod_shared_roster:create_group, withoud adding any group members, the new group has all of the members of the old deleted one. Is this a bug or a feature?

This has me confused for a while, util I worked out what was going on. The workaround was to remove all users from the SRG before deleting it, so it now all works fine.

Fixed in SVN r583

stainsby wrote:

if you delete a shared roster group (SRG) through mod_shared_roster:delete_group and then create a new one with the same name using mod_shared_roster:create_group, withoud adding any group members, the new group has all of the members of the old deleted one. Is this a bug or a feature?

I consider it a bug. It was fixed in ejabberd SVN r583 (2006-07-05) (bug issue).

automagically creating groups

I'm also interested in this. I haven't looked into how to do it. I was thinking of using perl with Net::XMPP with administrative credentials to create/destroy the rooms. Is that a wise way of doing this type of procedure?

Looks ok

zjt wrote:

I was thinking of using perl with Net::XMPP with administrative credentials to create/destroy the rooms. Is that a wise way of doing this type of procedure?

I think it's correct: you write a small program that logins to a Jabber account, performs some admin task, and logouts. This program will work with any MUC service.

Another solution would be to add some admin features to mod_muc. I started a contributed module for this, called mod_muc_admin, but I didn't have much time to implement features yet. Ideally, it could provide several interfaces to create/destroy rooms: webadmin page, ejabberdctl commands and ad-hoc commands.

I am very interested! is your

I am very interested! is your module available for public use?

Syndicate content