[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ejabberd and ldap



On Thu, Jun 03, 2010 at 12:01:04PM +0200, Joakim Seeberg wrote:
> Hi, what do I need to change below to make ejabberd authenticate
> against ldap.
> 
> %% Authentication using LDAP
> %%
> {auth_method, ldap}.
> %%
> %% List of LDAP servers:
> {ldap_servers, ["tjener.intern"]}.
> %%
> %% Encryption of connection to LDAP servers (LDAPS):
> {ldap_encrypt, tls}.
> %%
> %% Port connect to LDAP server:
> {ldap_port, 636}.
> %%
> %% LDAP manager:
> {ldap_rootdn, "cn=admin,ou=People,dc=skole,dc=skolelinux,dc=no"}.
> %%
> %% Password to LDAP manager:
> {ldap_password, "*****"}.
> %%
> %% Search base of LDAP directory:
> {ldap_base, "dc=skole,dc=skolelinux,dc=no"}.
> %%
> %% LDAP attribute that holds user ID:
> {ldap_uids, [{"mail", "%u@tjener.intern"}]}.
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Is this correct? I guess it should be uid or something??
But I have no idea about ejabberd.


> %%
> %% LDAP filter:
> {ldap_filter, "(objectClass=shadowAccount)"}.

Regards,

	Andi


Reply to: