Active directory in version 2.1.4

Hi there, i install ejabberd-2.1.4 from bin in my Ubuntu 10.04 TLS server. I need autentication against my Active Directory.
Then i define this in my ejabberd.cfg :

%%
{hosts, ["chat2.tecnostar.copextel.com.cu"]}. %% Also define chat2 in DNS as A record
.....
%%
%% Authentication using LDAP
%%
{auth_method, ldap}.
%%
%% List of LDAP servers:
{ldap_servers, ["dctecno1.tecnostar.copextel.com.cu"]}.
%%
%% LDAP attribute that holds user ID:
%%{ldap_uids, [{"mail", "%u@mail.example.org"}]}.
{ldap_uids, [{"sAMAccountName"}]}.
%%
%% Search base of LDAP directory:
{ldap_base, "DC=tecnostar,DC=copextel,DC=com,DC=cu"}.
%%
%% LDAP manager:
{ldap_rootdn, "CN=root,CN=Users,DC=tecnostar,DC=copextel,DC=com,DC=cu"}.
%%
%% Password to LDAP manager:
{ldap_password,"tecnostar2006++"}.
{ldap_filter,"(memberOf=*)"}.

Then recieve this in /logs/ejabberd.log:

=INFO REPORT==== 2010-06-29 09:36:19 ===
I(<0.265.0>:eldap:967) : LDAP connection on dctecno1.tecnostar.copextel.com.cu:389

=INFO REPORT==== 2010-06-29 09:36:19 ===
I(<0.277.0>:eldap:967) : LDAP connection on dctecno1.tecnostar.copextel.com.cu:389

=INFO REPORT==== 2010-06-29 09:36:19 ===
I(<0.37.0>:ejabberd_app:69) : ejabberd 2.1.4 is started in the node ejabberd@localhost

All is OK till here.

BUT when try to connect with any client recieve this message:

=INFO REPORT==== 2010-06-29 09:38:51 ===
I(<0.368.0>:ejabberd_listener:232) : (#Port<0.424>) Accepted connection {{192,168,6,232},30082} -> {{192,168,6,237},5222}

=INFO REPORT==== 2010-06-29 09:38:51 ===
I(<0.372.0>:ejabberd_c2s:598) : ({socket_state,gen_tcp,#Port<0.424>,<0.371.0>}) Failed authentication for root@chat2.tecnostar.copextel.com.cu

Some suggestion ?
Thanks a lot ?

yllsuarez wrote: =INFO

yllsuarez wrote:

=INFO REPORT==== 2010-06-29 09:38:51 ===
I(<0.372.0>:ejabberd_c2s:598) : ({socket_state,gen_tcp,#Port<0.424>,<0.371.0>}) Failed authentication for root@chat2.tecnostar.copextel.com.cu

Check this:

  • Does the account 'root' exist in LDAP?
  • Do you provide its correct password?
  • Does ejabberd send a correct query to LDAP?
  • Does LDAP response correctly: does it accept or reject the LDAP query?

user in root OU

i must copy users to main Users OU .. if i locate in son other OU then not work .. so filter is not working ...

Syndicate content