On Friday 23 March 2007 15:08, Ralf Haferkamp wrote:
On Wednesday 21 March 2007 19:40, Howard Chu wrote:
Ralf Haferkamp wrote:
[..]
- Should slapadd work with LDIF files that do not have any ordering
numbers for the databases in them?
- Should slapadd work with LDIF files that does not explicitly contain
the mandatory cn=frontend and cn=config databases?
I'd assume yes as the answer for both questions. The current code however shows all kinds of weird behaviour with regard to both points and I'd like to fix that.
Yes, both of those are supposed to work. They were fine the last time I looked, haven't checked HEAD recently.
[..]
slapd.d/ slapd.d/cn=config slapd.d/cn=config/cn=schema slapd.d/cn=config/cn=schema/cn={0}core.ldif slapd.d/cn=config/olcDatabase=bdb.ldif slapd.d/cn=config/cn=schema.ldif slapd.d/cn=config.ldif
Note the missing index in olcDatabase=bdb.ldif and the missing frontend and config Databases. Shouldn't the frontend and config Database be already created during slapadd?
I just commited code to HEAD that implements that behavior. (Creating {-1}frontend and {0}config if they do not exist when the first olcDatabase-Entry is slapadded). Would be nice if someone could review that code.