Here is my slapd.conf:
##### Schema
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/openldap.schema
include /etc/openldap/schema/redhat/autofs.schema
##### Allow LDAP v2
allow bind_v2
##### Some files
pidfile /var/run/slapd.pid
argsfile /var/run/slapd.args
rootDSE /var/lib/ldap/rootdse.ldif
##### Global access control
access to attrs=userPassword
by self write
by * auth
##### Databases
##### LANNet
database bdb
suffix "dc=lannet,dc=com,dc=au"
directory /var/lib/ldap
mode 0600
rootdn XXX
rootpw YYY
index objectClass eq,pres
index ou,cn,mail,surname,givenname eq,pres,sub
index uidNumber,gidNumber,loginShell eq,pres
index uid,memberUid eq,pres,sub
index nisMapName,nisMapEntry eq,pres,sub
access to attrs=telephoneNumber,
facsimileTelephoneNumber,
mobile,
street,
l,
st,
postOfficeBox,
postalCode,
o
by self write
by * read
##### Buller
database bdb
suffix "dc=buller,dc=com,dc=au"
directory /var/lib/ldap
mode 0600
rootdn XXX
rootpw YYY
index objectClass eq,pres
index ou,cn,mail,surname,givenname eq,pres,sub
index uidNumber,gidNumber,loginShell eq,pres
index uid,memberUid eq,pres,sub
index nisMapName,nisMapEntry eq,pres,sub
access to attrs=telephoneNumber,
facsimileTelephoneNumber,
mobile,
street,
l,
st,
postOfficeBox,
postalCode,
o
by self write
by * read
and here is my rootdse.ldif:
dn:
namingContexts: dc=lannet,dc=com,dc=au
namingContexts: dc=buller,dc=com,dc=au
What I am trying to achieve is to get multiple suffix dn into the
directory structure. I can populate the database with slapadd, but
when I run slapcat with the -b "<suffix>" option I see all of the
entries not just the one for the suffix, but when I run ldapsearch I
don't get much even though slapcat produces output:
# ldapsearch -x -b "dc=lannet,dc=com,dc=au"
# extended LDIF
#
# LDAPv3
# base <dc=lannet,dc=com,dc=au> with scope sub
# filter: (objectclass=*)
# requesting: ALL
#
# search result
search: 2
result: 0 Success
# numResponses: 1
Should the rootDSE file have more entries - if so, what?