[ejabberd] mod_shared_roster_ldap multi tenant

Gabriele Bulfon gbulfon at sonicle.com
Mon Apr 9 09:36:36 MSK 2018


Hello,
I've configured almost all stuff on ejabberd.yml on a multitenant server, running some separated domains,
through:
hosts:
 - "dom1.com"
 - "dom2.it"
and then:
host_config:
 "dom1.com":
  auth_method: ldap
  ldap_servers:
   - "localhost"
  ldap_port: 389
  ldap_rootdn: "cn=admin,dc=dom1,dc=com"
  ldap_password: "thepass"
  ldap_base: "ou=people,dc=dom1,dc=com"
 "dom2.com":
  auth_method: ldap
  ldap_servers:
   - "localhost"
  ldap_port: 389
  ldap_rootdn: "cn=admin,dc=dom2,dc=com"
  ldap_password: "thepass"
  ldap_base: "ou=people,dc=dom2,dc=com"
Authentication of xmpp users logging in works fine on the different domains.
Then I tried configuring roster to work separated for each domain, returning each their own list.
I can't find a way to make it work.
Looks like this config:
mod_shared_roster_ldap: {
ldap_base: "dc=dom1,dc=com",
ldap_rfilter: "(objectClass=inetOrgPerson)",
ldap_ufilter: "(uid=%u)",
ldap_groupattr: "cn",
ldap_groupdesc: "o",
ldap_userdesc: "cn",
ldap_useruid: "uid",
ldap_memberattr: "uid",
ldap_memberattr_format: "%u"
}
cannot be stated twice, one under each domain in host_config.
How can achieve my goal?
Thanks for any help
Gabriele
Sonicle S.r.l. 
: 
http://www.sonicle.com
Music: 
http://www.gabrielebulfon.com
Quantum Mechanics : 
http://www.cdbaby.com/cd/gabrielebulfon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20180409/7b5dffcf/attachment.html>


More information about the ejabberd mailing list