Multiple LDAP sources

Hi,

Is it possiple to have ejabberd authenticate against two different LDAP sources. ie. We have two different Active Directory Domains but want to use a common jabber domain.

Thanks,
Keith

I think you can't.

I think you can't.

You can specify a LDAP source for every virtual host, but only one. So the obvious solution is to have two virtual hosts: server1.example.com with LDAP1 and server2.example.com with LDAP2.

Thanks for the quick reply

Would this allow me to use the same Jabber name space, ie. user@sunyocc.edu?

Thanks Again,
Keith

Re: Thanks for the quick reply

kconger wrote:

Would this allow me to use the same Jabber name space, ie. user@sunyocc.edu?

Ops, sorry: when I said 'obvious solution', I didn't mean a solution to your problem, since two different virtual host can't serve the same domain.

I don't know any way to serve the same domain with two different LDAP servers at the same time.

It seems to be supported

Looking at the example configuration script, it seems ejabberd supports several LDAP servers for the same Jabber domain:

{auth_method, ldap}.
{ldap_servers, ["localhost", "otherhost"]}.    % List of LDAP servers
{ldap_uidattr, "uid"}.            % LDAP attribute that holds user ID
{ldap_base, "dc=example,dc=com"}. % Search base of LDAP directory
{ldap_rootdn, "dc=example,dc=com"}. % LDAP manager
{ldap_password, "******"}. % Password to LDAP manager
Syndicate content