[ejabberd] single roster of all ldap users... mod_shared_roster_ldap?

Łukasz Jagiełło jagiello.lukasz at gmail.com
Thu Apr 12 08:38:33 MSK 2012


2012/4/12 Ben Bradley <batfastad at gmail.com>:
> From looking through the docs for mod_shared_roster_ldap it seems that you
> need to have groups defined in your LDAP schema to act as the different
> rosters.
> Is that correct?
>
> Is there a way to have a roster from an LDAP directory which is purely the
> results of a single LDAP filter?

You looking something like that ?

#v+
{mod_shared_roster_ldap, [
    { ldap_servers, ["10.X.Y.Z"] },
    { ldap_rootdn, "cn=PAM,ou=System,dc=domain,dc=com" },
    { ldap_password, "password" },
    { ldap_port, 636 },
    { ldap_encrypt, tls },
    { ldap_base, "ou=accounts,dc=domain,dc=com" },
    { ldap_filter, "" },
    { ldap_gfilter, "(&(objectClass=employee)(ou=%g))" },
    { ldap_rfilter, "(&(objectClass=employee)(!(o=fire)))" },
    { ldap_ufilter, "(&(objectClass=employee)(cn=%u))" },
    { ldap_groupdesc, "ou" },
    { ldap_memberattr, "uid" },
    { ldap_userdesc, "displayName" },
    { ldap_auth_check, off }
  ]},
#v-

-- 
Łukasz Jagiełło
lukasz<at>jagiello<dot>org


More information about the ejabberd mailing list