Erlang/OTP Forums

Author Message

<  Ejabberd mailing list  ~  shared roster groups with external authentication

Guest
Posted: Fri Jan 22, 2010 7:33 am Reply with quote
Guest
Hello List,

We have installed ejabberd at the company I work for.

1. I know that there is mod_shared_roster, but it seems to be quite
simplistic in functionality.
Previously we used a proprietary IM service which allowed structured
shared roster.
By "structured" here I mean that users could switch between different
ways of grouping users. One could choose to view in "location mode"
and that would show members of the company grouped by city. Or we
could view in "company structure" mode and we could see company
members grouped by company departments.
Is there some way to achieve such a thing with ejabberd? It's not
strictly necessary that we have the functionality to "Switch views" (I
know clients don't support this).
But it would be acceptable if we could have lots of groups (and one
user belongs to more than one).

2. As far as I know, mod_shared_roster only works with "internal
authentication". We can't use this as we have a custom single sign-on
solution implemented by ourselves. So I guess we can't use mod shared
roster.

But could we generate some kind of custom roster (we'll worry about it
being up to date) in say xml format and then feed it somehow to
ejabberd, which then would serve it to users when they login? We could
do this regularly via cron etc. Is such a thing possible?

We are all still not very familiar with ejabberd. Sorry if I am asking
one of those questions that appear every week on the mailing list. I
can't find anything that can solve our problem so far.
Post received from mailinglist
Guest
Posted: Fri Jan 22, 2010 9:45 am Reply with quote
Guest
Having re-read some of the xeps, I can see nothing to stop a users jid from being in multiple roster groups. Really I suppose it's just down to the client displaying the roster sensibly in such a situation.


As for shared roster groups, I think it would require some development effort, but you could do something like using ldap to store group information I think, which would then just mean some development of a new mod_shared_roster to lookup things in ldap I guess (note I'm not very clued up with ldap as I don't use it)


Hope that is helpful info.


Regards


Kirk

On 22 Jan 2010, at 07:33, loxs <loxs.loxs@gmail.com (loxs.loxs@gmail.com)> wrote:



Quote:
Hello List,

We have installed ejabberd at the company I work for.

1. I know that there is mod_shared_roster, but it seems to be quite
simplistic in functionality.
Previously we used a proprietary IM service which allowed structured
shared roster.
By "structured" here I mean that users could switch between different
ways of grouping users. One could choose to view in "location mode"
and that would show members of the company grouped by city. Or we
could view in "company structure" mode and we could see company
members grouped by company departments.
Is there some way to achieve such a thing with ejabberd? It's not
strictly necessary that we have the functionality to "Switch views" (I
know clients don't support this).
But it would be acceptable if we could have lots of groups (and one
user belongs to more than one).

2. As far as I know, mod_shared_roster only works with "internal
authentication". We can't use this as we have a custom single sign-on
solution implemented by ourselves. So I guess we can't use mod shared
roster.

But could we generate some kind of custom roster (we'll worry about it
being up to date) in say xml format and then feed it somehow to
ejabberd, which then would serve it to users when they login? We could
do this regularly via cron etc. Is such a thing possible?

We are all still not very familiar with ejabberd. Sorry if I am asking
one of those questions that appear every week on the mailing list. I
can't find anything that can solve our problem so far.
Quote:
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru (ejabberd@jabber.ru)
http://lists.jabber.ru/mailman/listinfo/ejabberd


Post received from mailinglist
Guest
Posted: Tue Jan 26, 2010 12:13 pm Reply with quote
Guest
2010/1/22 loxs <loxs.loxs@gmail.com>:
> 2. As far as I know, mod_shared_roster only works with "internal
> authentication".

>From what i know, the module generally works with any authentication
method. It is only the feature @all@ who works only with internal auth method.


> We can't use this as we have a custom single sign-on
> solution implemented by ourselves. So I guess we can't use mod shared
> roster.
>
> But could we generate some kind of custom roster (we'll worry about it
> being up to date) in say xml format and then feed it somehow to
> ejabberd, which then would serve it to users when they login? We could
> do this regularly via cron etc. Is such a thing possible?

You can install mod_admin_extra. It provides several commands for
ejabberdctl that may be useful for you, like push_roster_all or srg_user_add

This way you can implement the logic of adding/deleting contacts in your
prefered language, and then call the script ejabberdctl to perform the changes.

If you later notice that calling a shell script for each change is too
slow for you,
you can install also ejabberd_xmlrpc, which provides an XML-RPC server where
you can send your command queries (instead of the shell script ejabberdctl).


In case you use LDAP authentication, look at
http://www.ejabberd.im/mod_shared_roster_ldap


---
Badlop
ProcessOne
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post received from mailinglist
wuji
Posted: Mon Aug 27, 2012 3:31 am Reply with quote
User Joined: 10 Aug 2012 Posts: 654
Oberle did not have clearance to be standing in the the cheap Ralph Lauren the area past the public fence. Oberle stepped on a
peeceived by the chimps as their terrority when he neared neared cheap replica *beep* neared an electrified fence. Two male chimpanzees named Nikki and
reached underneath pulled him halfway under the fence by his his cheap polo shirts his foot. Oberle fought to not be pulled into the
At this point, the sanctuary instituted its lockdown procedure, Cussons Cussons [h3]cheap polo shirts[/h3] Cussons said. The institute believes the chimpanzees were able to
through the space made by Oberle's body. Nikki and Amadeus Amadeus discount designer *beep* Amadeus then dragged Oberle 30 meters into the public area
continued to maul him. Armed guards were brought in to to [h1]replica designer bags for sale[/h1] to protect buildings, while keepers and manager rushed to the
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum