I have gentoo machine. I have installed ejabberd 2.0.1 using emerge.And I have problems with LDAP authentication. Ejabberd doesn't connect to LDAP server. I tried both LDAP and LDAPS(after patching) and nothing. Has anybody any idea?
To access the most up-to-date ejabberd documentation, please visit docs.ejabberd.im »
I have gentoo machine. I have installed ejabberd 2.0.1 using emerge.And I have problems with LDAP authentication. Ejabberd doesn't connect to LDAP server. I tried both LDAP and LDAPS(after patching) and nothing. Has anybody any idea?
How do you write you
How do you write you credentials?
{auth_method,
{auth_method, ldap}.
{ldap_servers, ["ip.ip.ip.ip"]}.
%%{ldap_encrypt, tls}.
{ldap_posrt, 389}. %or 636 for LDAPS
{ldap_uids, "uid"}.
{ldap_base, "dc=domain"}.
{ldap_rootdn, "cn=admin, dc=domain"}.
{ldap_password, "password"}.
Try to change {ldap_rootdn,
Try to change
{ldap_rootdn, "cn=admin, dc=domain"}.
to
{ldap_rootdn, "admin"}.
{ldap_uids, "uid"}. is mistakable if you use Active Directory. I'll tell you tomorrow what you should write here.
LDAPS patch has bug. You should restart your ejabberd at least one time per day.
What is it? It's wrong!
{ldap_posrt, 389}. %or 636 for LDAPS
You should write:
{ldap_port, 389}. %or 636 for LDAPS
I have done mistake in
I have done mistake in {ldap_port} while writing post. In config file I have {ldap_port, 389}.
My rootdn: {ldap_rootdn,
My rootdn:
{ldap_rootdn, "Jabber"}.
MyUIDS (for Active Directory):
{ldap_uids, [{"sAMAccountName", "%u"}]}.
Re: Ejabberd not connecting to ldap server
Increase the debug level and look into the logs.
{loglevel, 5}.