From owner-freebsd-questions@FreeBSD.ORG Mon Aug 20 20:31:43 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4952E16A418 for ; Mon, 20 Aug 2007 20:31:43 +0000 (UTC) (envelope-from lisandrogrullon07@hotmail.com) Received: from bay0-omc3-s1.bay0.hotmail.com (bay0-omc3-s1.bay0.hotmail.com [65.54.246.201]) by mx1.freebsd.org (Postfix) with ESMTP id 336D313C480 for ; Mon, 20 Aug 2007 20:31:43 +0000 (UTC) (envelope-from lisandrogrullon07@hotmail.com) Received: from BAY116-W6 ([64.4.38.106]) by bay0-omc3-s1.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Mon, 20 Aug 2007 13:31:40 -0700 Message-ID: X-Originating-IP: [199.219.138.254] From: Lisandro Grullon To: Jonathan and Jeannie Date: Mon, 20 Aug 2007 16:31:41 -0400 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 20 Aug 2007 20:31:40.0842 (UTC) FILETIME=[1D71D8A0:01C7E369] Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "freebsd-questions@freebsd.org" Subject: RE: Configuring OpenLDAP on FreeBSD 6.2 Release, Problems. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Aug 2007 20:31:43 -0000 > From: jmckeown@eastcoast.co.za> To: freebsd-questions@freebsd.org> Subjec= t: Re: Configuring OpenLDAP on FreeBSD 6.2 Release, Problems.> Date: Mon, 2= 0 Aug 2007 22:26:26 +0200> CC: lisandrogrullon07@hotmail.com> > On Monday 2= 0 August 2007 17:21, Lisandro Grullon wrote:> > Hi All,> > I am a newcomer = to the FreeBSD world. I am trying to implement a openLDAP> > installation. = It all went ok with the SASL and SERVER install in> > conjunction with BDB,= yet when I try starting the service using> > "/usr/local/libexec/slapd" or= "/usr/local/etc/rc.d/slapd start", the> > service does not start.> > This = may be a very silly question, but have you enabled slapd in /etc/rc.conf?> = > The startup scripts in /etc/rc.d and /usr/local/etc/rc.d won't run unless= the > associated control variable is set to "YES" in /etc/rc.conf. To find= the > right variable and its current setting, =20 This is what I have added in my current rc.conf. I think it goes according = to the guidelines of the Manual at openLDAP. =20 # The following line will enable slapd and all its dependeciesslapd_enable= =3D"YES"slapd_flags=3D'-h "ldapi://%2fvar%2frun%2fopenldap%2fldapi/ ldap://= 0.0.0.0/"'slapd_sockets=3D"/var/run/openldap/ldapi" I am not 100% sure where my mistake is hence the log is not showing me anyt= hing, this is the first time for me playing with openLDAP. I am starting to worder if it has something to do with the LDIF file or con= figuration of the database. Throw me a bone if you have one. > > /usr/local/etc/rc.d/slapd rcvar> > which in this case tells us the cont= rol variable is $slapd_enable, > so /etc/rc.conf needs to contain> > slapd_= enable=3D"YES"> > As a bonus, if this isn't set but you want to do a one-of= f start or stop (for > example during testing), you can use onestart and on= estop:> > /usr/local/etc/rc.d/slapd onestart>=20 =20 I tried following these guidelines and still getting that silly error by sy= slog which doesn't give a clue of where the mistake is located.=20 This is the output of debug.log =20 Aug 20 16:24:21 sce2 slapd[72618]: @(#) $OpenLDAP: slapd 2.4.3alpha (Oct 18= 2006 03:27:53) $ root@freebsd.org:/work/a/ports/net/openldap24-server/w= ork/openldap-2.4.3alpha/servers/slapdAug 20 16:24:21 sce2 slapd[72618]: con= nections_destroy: nothing to destroy.Aug 20 16:24:21 sce2 slapd[72618]: sla= pd stopped. I am even more confuse by this whole thing. Thanks in advance for any help = you can provide me with. > which ignores the control variable.> > Jonathan _________________________________________________________________ Find a local pizza place, movie theater, and more=85.then map the best rout= e! http://maps.live.com/default.aspx?v=3D2&ss=3Dyp.bars~yp.pizza~yp.movie%20th= eater&cp=3D42.358996~-71.056691&style=3Dr&lvl=3D13&tilt=3D-90&dir=3D0&alt= =3D-1000&scene=3D950607&encType=3D1&FORM=3DMGAC01=