Hi,
I am setting up an ejabberd server and trying to set it to use ldap with active directory, but I just can't get it to work. i have tried several settings, both from the manual and any input picked up from the forum posts.
I am running Windows 2003 server std edt and ejabberd 2.0.0 rc1.
Any help is highly appreciated.
My settings are as follows:
%% Authentication using LDAP
%%
{auth_method, ldap}.
%%
%% List of LDAP servers:
{ldap_servers, ["location3-server1.domain.local"]}.
%%
%% LDAP attribute that holds user ID:
{ldap_uids, "sAMAccountName"}.
%%
%% Search base of LDAP directory:
{ldap_base, "dc=domain,dc=local"}.
%%
%% LDAP manager:
%% {ldap_rootdn, ""}.
{ldap_rootdn, "CN=Administrator,CN=Users,DC=domain,DC=local"}.
%%
%% Password to LDAP manager:
{ldap_password, "secret"}.
%% {ldap_filter, ""}.
{ldap_filter, "(memberOf=*)"}.
{mod_vcard_ldap,
[{ldap_vcard_map,
[{"NICKNAME", "%u", []},
{"GIVEN", "%s", ["givenName"]},
{"MIDDLE", "%s", ["initials"]},
{"FAMILY", "%s", ["sn"]},
{"FN", "%s", ["displayName"]},
{"EMAIL", "%s", ["mail"]},
{"ORGNAME", "%s", ["company"]},
{"ORGUNIT", "%s", ["department"]},
{"CTRY", "%s", ["c"]},
{"LOCALITY", "%s", ["l"]},
{"STREET", "%s", ["streetAddress"]},
{"REGION", "%s", ["st"]},
{"PCODE", "%s", ["postalCode"]},
{"TITLE", "%s", ["title"]},
{"URL", "%s", ["wWWHomePage"]},
{"DESC", "%s", ["description"]},
{"TEL", "%s", ["telephoneNumber"]}]},
{ldap_search_fields,
[{"User", "%u"},
{"Name", "givenName"},
{"Family Name", "sn"},
{"Email", "mail"},
{"Company", "company"},
{"Department", "department"},
{"Role", "title"},
{"Description", "description"},
{"Phone", "telephoneNumber"}]},
{ldap_search_reported,
[{"Full Name", "FN"},
{"Nickname", "NICKNAME"},
{"Email", "EMAIL"}]}
]
}.