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

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/