Something isnt clear to me, on A I got the following slapd.conf:
database hdb
suffix "dc=example,dc=com"
database ldap
suffix "dc=B,ou=Subs,dc=example,dc=com"
uri "ldap://B/"
idassert-bind bindmethod=simple
binddn="dc=example,dc=com"
credentials=[password in clear text]
authzID="dn:cn=Manager,dc=example,dc=com"
And on B I got the following setup:
database hdb
suffix "dc=example,dc=com"
When I start slapd on A I get:
/etc/openldap/slapd.conf: line 87: <suffix> namingContext "dc=B,ou=Subs,dc=example,dc=com" already served by a preceding hdb database serving namingContext "dc=example,dc=com".
Isnt it possible to set a database as a branch of another ?