[Date Prev][Date Next]
Re: back-config, includes
- To: firstname.lastname@example.org
- Subject: Re: back-config, includes
- From: Howard Chu <email@example.com>
- Date: Mon, 21 Mar 2005 02:34:37 -0800
- Cc: openldap-devel@OpenLDAP.org
- In-reply-to: <firstname.lastname@example.org>
- References: <423A8BF5.email@example.com> <firstname.lastname@example.org>
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050318
Pierangelo Masarati wrote:
At this point it's still pretty limited; I haven't implemented any LDAP
write operations yet.
the reason I'm not routinely replyin to your messages bout bak-config is
essentially due to th fact that I couldn't invesigte the code deeply
enough to have a sufficient insight into the scope of your design. In
principle, I find your suggestions completely reasonable (at least, I dont
have any better ideas ;).
One point is that I don't quite understand yet how much is alredy
implemented nd how much i yet to come in terms of funtionalities.
If the configdir exists, it will get populated with an LDIF form of the
slapd.conf. All of the frontend config parameters are now supported, and
all of the back-bdb/hdb and back-ldif parameters are as well. All
included schema files are converted to LDIF as described in my previous
post. If you do a search against cn=config you should see everything.
It is now possible to run slapd using just the configdir instead of the
slapd.conf file; all of the LDIF is reloaded and produces a runnable
setup. (You have to change the "#if 0 /* not yet */" line in bconfig.c
to "#if 1" otherwise it will still look for and parse the slapd.conf file.)
I think the next step will be to implement LDAPadd; it should be safe to
add just about anything - schema, databases, overlays, include files...
The fact that the backendDB array is realloc'd as new backends are
opened is a problem, I think this will need to be a linked list instead.
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
Symas: Premier OpenSource Development and Support