mod_shared_roster_ldap multiple vhosts

Hello,

I'm running the stable version 2.1.6 and having issues with the mod_ldap_shared_roster when one user only can contact users of the same vhost, my module conf is like:

{mod_shared_roster_ldap,[
{ldap_rfilter, "(objectClass=posixGroup)"},
{ldap_filter, ""},
{ldap_gfilter, "(&(objectClass=posixGroup)(cn=%g))"},
{ldap_groupdesc, "description"},
{ldap_memberattr, "memberUid"},
{ldap_memberattr_format, "%u"},
{ldap_ufilter, "(&(objectClass=inetOrgPerson)(mail=%u@*))"},
{ldap_useruid, "mail"},
{ldap_userdesc, "displayName"},
]},

My LDAP database is like that:

ou=user,dc=domain,dc=tld
cn=user1,ou=user,dc=domain,dc=tld (vhost 1)
cn=user2,ou=user,dc=domain,dc=tld (vhost 1)
cn=user3,ou=user,dc=domain,dc=tld (vhost 2)
cn=user4,ou=user,dc=domain,dc=tld (vhost 2)
ou=group,dc=domain,dc=tld
cn=group1,ou=group,dc=domain,dc=tld
cn=group2,ou=group,dc=domain,dc=tld

With the conf of documentation of module can't work and the issue is the same, when user request all roost members, all users appear to be the same vhost, i.e:

user1@domain1.tld
user2@domain1.tld

user3@domain2.tld
user4@domain2.tld

All the users to user1, in the contact list the JID appear to be "user@domain1.tld", while to users of "domain2.tld" all users appear to be the same virtual host.

I try setting useruid to mail to get the domain part as the JID, but does not work.

Thanks

mod_shared_roster (and I

mod_shared_roster (and I imagine also mod_shared_roster_ldap) do not support getting users from another vhost. Maybe you can get users from other vhost using LDAP configuration, but the module does not support that. So you get that vhost confusion.

Well, another doubt, how i

Well,

another doubt, how i can restrict user access to some groups like i do in mod_shared_roster

Syndicate content