Hi,
I'm trying to configure ejabberd.yml with active directory auth, as described in:
auth_method: [ldap]
ldap_servers: ["dcsrv.egoncalves.local"] # List of LDAP servers
ldap_base: "DC=egoncalves,DC=local" # Search base of LDAP directory
ldap_rootdn: "CN=Administrador,CN=Users,DC=egoncalves,DC=local" # LDAP manager
ldap_password: "My$3cr3t" # Password to LDAP manager
ldap_uids: ["sAMAccountName"]
ldap_filter: "(memberOf=*)"
But I'm getting this error:
10:57:45.963 [warning] Access of <<"administrador@egoncalves.local">> from <<"10.1.1.10">> failed with error: <<"inexistent-account">>
ejabberd_auth_ldap_novanis.local10:59:46.174 [error] The authentication module ejabberd_auth_ldap returned an error
when checking user <<"Administrador">> in server <<"egoncalves.local">>
Error message: {noproc,{gen_server,call,['ejabberd_auth_ldap_egoncalves.local',get_state]}}
I'm using CEntOS 7, ejabberd 14.12, and for test I disabled firewalld and selinux.
My Active Directory is a Windows Server 2012 R2.
And I was able to join my machine on Domain using: realm join dcsrv.egoncalves.local -U Administrador
Please, can someone post an full ejabberd.yml file that has Active Directory's configuration as an example?