我正在与 Mongooseim 一起设置 OpenLDAP。我对ldap没有详细的了解。我能够使用 LDAP 设置身份验证,但无法设置mod_shared_roster_ldap
. 我想要彼此名册中的所有用户。
我的示例配置是这样的:
{ldap_servers, ["test.example.com"]}.
{ldap_port, 389}.
{ldap_rootdn, "cn=admin,dc=test,dc=example,dc=com"}.
{ldap_password, "example"}.
{ldap_base, "ou=users,dc=test,dc=example,dc=com"}.
{ldap_uids, [{"uid", "%u"}]}.
{mod_shared_roster_ldap, [{ldap_base,"ou=users,dc=test,dc=example,dc=com"},
{ldap_groupattr,"cn"},
{ldap_gfilter,"(&(objectclass=groupOfURLs)(cn=%g))"},
{ldap_groupdesc, "description"},
{ldap_memberattr, "member"},
{ldap_memberattr_format,"cn=%u,ou=Users,dc=xmpp,dc=graphed,dc=io"},
{ldap_ufilter,"(&(objectClass=inetOrgPerson)(cn=%u))"},
{ldap_userdesc, "cn"},
{ldap_auth_check, "off"},
{ldap_user_cache_validity, "10"},
{ldap_group_cache_validity, "10"}
]}