[ejabberd] shared rosters don't work with PAM auth

John de Largentaye john at largentaye.org
Thu Sep 8 20:29:36 MSD 2011

On Thu, Sep 8, 2011 at 2:03 AM, Badlop <badlop at gmail.com> wrote:
> 2011/9/8 John de Largentaye <john at largentaye.org>:
>> I have a server running with PAM auth and shared rosters. PAM auth
>> works. I have setup a shared roster 'everyone' as follows:
>> Name: Everyone
>> Members: @all@
>> Displayed Groups: everyone
>> However this doesn't seem to work: users don't see each other unless
>> they manually add each other. I tried permuting case to no avail.
> The misfeature is in ejabberd_auth_pam.erl which implements this function:
>> get_vh_registered_users(_Host) ->
>>    [].
> PAM auth doesn't provide any way to mod_shared_roster to know the list
> of registered accounts.
>> Any pointers on how I can fix this?
> Instead of [], that function should return a list with accounts; example:
>  [{"user2","localhost"},  {"badlop","localhost"},  {"user1","localhost"}]

Yikes, I was hoping for some alternative setup rather than code
modifications, as I don't know how to setup a persistent store for
users auth'd through PAM. I'll see if I can take a stab at it

In the meantime, should I log a bug?

More information about the ejabberd mailing list