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

RE: How to start slapd without slapd.conf?

And how to use such a bootstrap LDIF? Starting slapd with -f pointing to the LDIF does not work. That is what I have been looking for and could not find. 
Another thing I have been wandering about: What is the rootDN if it is not set in a bootstrap LDIF like the one below? 

From: Howard Chu [hyc@symas.com]
Sent: Tuesday, August 20, 2013 13:28
To: Steppacher Ralf; openldap-technical@openldap.org
Subject: Re: How to start slapd without slapd.conf?

Steppacher Ralf wrote:
> Ben,
> I re-read those sections. But they only describe how to convert a
pre-existing slapd.conf file. So, to bootstrap slapd I created a minimal
slapd.conf with just the config database and a rootdn/pw for it and converted
that with slaptest. But I find it a bit awkward that slapd.conf should be
mandatory to get started, but at the same time is declared deprecated in
chapter 5 of the administrator's guide.

slapd.conf is not mandatory. Only a few lines of LDIF are needed to bootstrap.

This is a minimal slapd.ldif that you can use; it's also provided in the test
suite as data/slapd-dynamic.ldif:

dn: cn=config
objectClass: olcGlobal
cn: config

dn: olcDatabase=config,cn=config
objectClass: olcDatabaseConfig
olcDatabase: config
olcRootPW: SuperSecret


> Thanks anyway!
> Ralf
> ________________________________________
> From: openldap-technical-bounces@OpenLDAP.org [openldap-technical-bounces@OpenLDAP.org] on behalf of btb [btb@bitrate.net]
> Sent: Monday, August 19, 2013 13:57
> To: openldap-technical@openldap.org
> Subject: Re: How to start slapd without slapd.conf?
> On 2013.08.19 07.35, Steppacher Ralf wrote:
>> Hello all,
>> this is probably a really stupid question... But I cannot figure out how
>> to start a freshly built slapd using only slapd-config configuration.
> please see section 5 [configuring slapd] of the administrator's guide.
> also see man 5 slapd-config and man 8 slaptest
> -ben

   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/