[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Multiple database backends
I am trying to set up OpenLDAP on an SGI to serve as an information
server for our department address lists, a central repository for the
Netscape roaming profiles and as a replacement for our NIS yellow pages
server.
The address information is imported from our mailing system (Lotus), is
for the moment read only and gets imported every now and again by hand.
I have got this to work by using the ldif2ldbm utility to create the
database tables.
The Netscape roaming profiles are generated by netscape and should not
be disturbed by any modifications to the other databases.
The NIS information is currently still in files which I import using
MigrationTools-3.20 (or at least am planning to).
I had planned to use different databases for each of the different
applications, particularly as everything is still cobbled together, thus
reducing the side effects of reloading the databases. That way if I make
a mistake it is less likely that I kill usefull data.
My slapd.conf looks something like this:
database ldbm
suffix "o=SBS, c=DE"
directory /var/webtools/ldap/database/ibs
rootdn "cn=root, o=SBS, c=DE"
rootpw secret
defaultaccess read
index cn,sn,givenName
index objectclass pres,eq
index default none
#loglevel 2916
#loglevel 4095
# cleartext passwords, especially for the rootdn, should
# be avoid. See slapd.conf(5) for details.
database ldbm
suffix "o=ROAMING, c=DE"
directory /var/webtools/ldap/database/roaming
rootdn "cn=root, o=ROAMING, c=DE"
rootpw secret
defaultaccess read
defaultaccess write
database ldbm
suffix "o=nis, c=DE"
directory /var/webtools/ldap/database/nis
rootdn "cn=root, o=nis, c=DE"
rootpw secret
defaultaccess read
defaultaccess write
If I try to create the toplevel classes for o=roaming, c=de these land
in the first database listed and not in the database I want.
I loaded ldif2ldbm with the following:
dn: o=ROAMING, c=DE
o: ROAMING
objectclass: top
objectclass: organization
dn: ou=Roaming, o=ROAMING, c=DE
ou: Roaming
objectclass: top
objectclass: nsLIProfile
dn: ou=sbs is 69, o=ROAMING, c=DE
objectclass: top
objectclass: inetOrgPerson
When I try an ldapsearch -b "o=roaming, c=de" 'objectclass=*' I get the
usual "No such object" and a new file dn2id.dbb is created in the
otherwise emply database/roaming directory.
Does anyone have any ideas how this could be made to work or can tell me
if I am barking up the wrong tree.
The plan is to replace our ageing and Y2K unsafe NIS server at the same
time as taking a step in the right direction.