Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to have multiple seperate LDAP trees on a single LDAP server?

share|improve this question
up vote 4 down vote accepted

Yes. You have to create multiple database entries in the base configuration and configure them with different Base DN's.

This is done with the database statement in the /etc/openldap/slapd.conf.


database        bdb
suffix          "dc=example,dc=com"
rootdn          "uid=root,cn=users,dc=example,dc=com"

You will find more information in OpenLDAP's documentation.

(Note: Of course, this should also be possible to be configured via the cn=config online configuration).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.