Skip to content

Installation: Archipel and LDAP

bastelfreak edited this page Mar 29, 2012 · 5 revisions

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

####### LDAP Authentication

{auth_method, [internal,ldap]}.
{ldap_servers, ["localhost"]}.
{ldap_encrypt, none}.
{ldap_port, 389}.
{ldap_base, "ou=People,dc=example,dc=com"}.
{ldap_uids, [{"uid"}]}.
{ldap_filter, "(&(objectClass=posixAccount)(gidNumber=10001)(!(loginShell=/bin/false)))"}.



###### LDAP Shared Roster against a specific ldap group

  {mod_shared_roster_ldap,[
    {ldap_base, "dc=mandriva,dc=com"},
    {ldap_rfilter, "(&(objectClass=posixGroup)(cn=mandriva))"},
    {ldap_filter, ""},
    {ldap_gfilter, "(&(objectClass=posixGroup)(cn=%g))"},
    {ldap_groupdesc, "description"},
    {ldap_memberattr, "memberUid"},
    {ldap_memberattr_format, "%u"},
    {ldap_ufilter, "(&(objectClass=posixAccount)(gidNumber=10001)(!(loginShell=/bin/false))(uid=%u))"},
    {ldap_userdesc, "displayName"}
  ]},
Clone this wiki locally