运行多个LDAP树OpenLDAP

是否有可能在单个LDAP服务器上有多个单独的LDAP树?

是。 您必须在基本configuration中创build多个数据库条目,并使用不同的Base DNconfiguration。

这是通过/etc/openldap/slapd.confdatabase语句/etc/openldap/slapd.conf

例:

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

您将在OpenLDAP的文档中find更多信息。

(注意:当然,这也应该可以通过cn=config在线configuration进行configuration)。