I have been working on getting mod_shared_roster_ldap to work for a couple days and just can't figure this thing out. I can ldap auth and get shared rosters fine but I see all groups, not just the groups my user is part of. My understanding is that this should be the default behaviour: your shared roster should only be the groups you are part of.
I can see all my companies and users using ldapsearch and I can see ejabberd hitting my ldap server and querying tons of stuff but I can't make 'just my groups' show up. For example, when I login as randy I see groups for every objectclass=company and all users in the system when I want to only see the company that randy is part of.
Am I misunderstanding the intent of mod_shared_roster_ldap or do I have one of my config settings wrong? both the config and the ldap server output are completely under my control so whatever I need to tweak is on the table.
Thanks so much, getting very frustrated with this ;)
Submitted by mikekaganski on Fri, 2011-09-23 10:40.
The version of this module included in the ejabberd distribution isn't able to achieve this. An attempt was made to improve this module, its address is posted here.
Note that the configuration options for that newer module have changed greatly compared to the vanilla module. The detailed description of them is given in the comments on its development page (they have not been consolidated into single manual yet, this work is still to be done, and only if developers of ejabberd will decide that this version is worth of merging to ejabberd). The specific configuration parameter that makes what you want is ldap_user_groups_only.
The version of this module
The version of this module included in the ejabberd distribution isn't able to achieve this. An attempt was made to improve this module, its address is posted here.
Note that the configuration options for that newer module have changed greatly compared to the vanilla module. The detailed description of them is given in the comments on its development page (they have not been consolidated into single manual yet, this work is still to be done, and only if developers of ejabberd will decide that this version is worth of merging to ejabberd). The specific configuration parameter that makes what you want is ldap_user_groups_only.