cannot connect to active directory

I have no issue with installation and connect locally but we want to ejabberd integrated with active directory.

Everytime I modify ejabberd.cfg then ejabberd service stopped working and could not start it. I know something related the host but just cannot fix it,
it is very frustrated and hope someone can help me:

{host_config, "chat.domain.com", [{auth_method, ldap},
{ldap_servers, [{192.168.1.11", "192.168.1.12}]},
{ldap_port, 389},
{ldap_uids, [{"sAMAccountName", "%u"}]},
{ldap_base, {cn=ejabberd,dc=domain,dc=local},
{ldap_rootdn,{"cn=ejabberduser, ou=test accounts,ou=users,ou=corporate,dc=domain,dc=local"}
{ldap_password, "test123"}
{acl, admin, {user, "adminUser", "chat.domain.com"},
{acl, admin, {user, "remy", "chat.domain.com}}.

How does the Linux server (which didn't joint domain but can ping dns and DC) to see active directory?

What is wrong with the aboved entries,why ejabberd stopped and cannot started and why I can see AD from the Linux box ,
cannot login web console neither.

ginger8990

ginger8990 wrote:

{ldap_servers, [{192.168.1.11", "192.168.1.12}]},

Note wrong quotes. Should be
{ldap_servers, [{"192.168.1.11", "192.168.1.12"}]},

ginger8990 wrote:

{ldap_base, {cn=ejabberd,dc=domain,dc=local},

Note absent quotes. Should be
{ldap_base, {"cn=ejabberd,dc=domain,dc=local"},
You should also post your startup log here, to make sure every other possible error is trackable...

ginger8990 wrote:

cannot login web console neither.

When you have configured your ejabberd properly, you will need to use your full jid to ligin to web interface...

I corrected all errors but it

I corrected all errors but it still not working. I even cannot see the web console any more.

Something is related to the host file.
Do we need to modify /etc/hosts ?

such as 127.0.0.1 chat.testdomain.com chat
192.168.1.11 chat.testdomain.com

What is full jid? such as myname@chat.testdomain.com???

I tried and corrected all

I tried and corrected all errors but it still didn't work.

If I don't add ldap entries, web console works fine
ejabberd services immediately stopped after I modified ejabberd.cfg with ldap entries

What is supposed to look like in /etc/hosts file?

Syndicate content