Skip to content

Installation: Archipel and LDAP

Cyril Peponnet edited this page Apr 4, 2015 · 5 revisions

If you want to use Archipel and (Open)LDAP, add this to your ejabberd configuration:

This is done per hosts (in the yaml)

## LDAP Authentication

host_config:
  "FQDN":
    # both internal and ldap are nneded
    auth_method:
      - internal
      - ldap
    ldap_servers:
      - "localhost"
    ldap_uids:
      - "uid"
    ldap_rootdn: "dc=localdomain"
    ldap_rootdn: "dc=example,dc=com"
    ldap_password: ""
    ldap_dn_filter:
      "(&(name=%s)(owner=%D)(user=%u@%d))": ["sn"]

## LDAP Shared Roster against a specific ldap group
modules:
  ...
  mod_shared_roster_ldap:
    ldap_base: "ou=flat,dc=nodomain"
    ldap_rfilter: "(objectClass=inetOrgPerson)"
    ldap_groupattr: "ou"
    ldap_memberattr: "cn"
    ldap_filter: "(objectClass=inetOrgPerson)"
    ldap_userdesc: "displayName"
  ...

For more information have look to the excelent ejabberd documentation

Clone this wiki locally