[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Problem understanding the configuration of two databases.





--On Sunday, January 04, 2004 8:19 AM -0600 Nick <nagray@austin.rr.com> wrote:

I bought LDAP System Administration and was able to get the example
running without a problem. I can't seem to extend the example to be able
to use more than one database. I was hoping someone could take a quick
look at the configs and tell me where I went wrong.

Slapd starts fine, but the initial data entry via

"slapadd -v -l /etc/openldap/top.ldif" fails with the message

slapadd: line 14: database (dc=efficax,dc=net) not configured to hold
"dc=oeddev,dc=org"
slapadd: line 14: database (dc=efficax,dc=net) not configured to hold
"dc=oeddev,dc=org"

Read the manpage on slapadd. By default, slapadd adds your data to the *first writeable* defined database in your slapd.conf file. There are two different flags you can give slapadd to use a different database:


-b suffix
	      Use the specified suffix to  determine  which  database  to  add
	      entries  to.   The  -b cannot be used in conjunction with the -n
	      option.

      -n dbnum
	      Add entries to the dbnum-th database listed in the configuration
	      file.   The -n cannot be used in conjunction with the -b option.

--Quanah

--
Quanah Gibson-Mount
Principal Software Developer
ITSS/TSS/Computing Systems
ITSS/TSS/Infrastructure Operations
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html