Ejabberd + Active Directory

Hey friend's a ilke ti integrate my ejjaberd server with my windows 2003 R2 server , i trying some configuration examples , but apper to not work fine, here's my configuration

%{auth_method, ldap}.
%{ldap_servers, ["myserver"]}. % List of LDAP servers
%{ldap_uidattr, "sAMAccountName"}. % LDAP attribute that holds user ID
%{ldap_base, "OU=Users,DC=ipiscmg,DC=rimed,DC=cu"}. % Search base of LDAP directory
%{ldap_rootdn, "CN=Administrator,DC=ipiscmg,dc=rimed,dc=cu"}. % LDAP manager
%{ldap_password, ""}. % Password to LDAP manager
{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"}]}
]
}.

What's wrong here

Thanks in advance

Hermidio

Comments?

hermidio wrote:

%{auth_method, ldap}.
%{ldap_servers, ["myserver"]}. % List of LDAP servers
%{ldap_uidattr, "sAMAccountName"}. % LDAP attribute that holds user ID
%{ldap_base, "OU=Users,DC=ipiscmg,DC=rimed,DC=cu"}. % Search base of LDAP directory
%{ldap_rootdn, "CN=Administrator,DC=ipiscmg,dc=rimed,dc=cu"}. % LDAP manager
%{ldap_password, ""}. % Password to LDAP manager

Hermidio,

Lines beginning with a `%' sign are comments. So, if your configuration file has the lines above exactly as you wrote, it is ignoring them.

Best regards,
Robson

I know that

friend i know taht all % are ignored by the server, i have now in this way becasuse not running with this configuration

Thanks in advance

Hermidio

Syndicate content