From owner-freebsd-questions@FreeBSD.ORG Thu Jul 24 04:32:13 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA63D1065672 for ; Thu, 24 Jul 2008 04:32:13 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.228]) by mx1.freebsd.org (Postfix) with ESMTP id 6ED5C8FC19 for ; Thu, 24 Jul 2008 04:32:13 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so3265146rvf.43 for ; Wed, 23 Jul 2008 21:32:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=SaUKdJ5s2RFS/+OE2Rr0iIjr41IdiXp87J9PMi4wV8k=; b=BFV/kyzlKGj/Y36BTKCKe6hrHGobKeFJ4rwLB+fOT8yGOD1LZOktbUzKZlvPxqs7xd Yd+6TU8gjfiHUXoVZeBRHSERWvkGdkHX/I2XIc0ex+nLD68WVdBL08T3LE1D9unhF4HF CgsvkRbKXUGkYtwAS31hNl6bM58PPZa+Ga4N0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=Z9/4CRz3UmYFlitT7gWYVfmta9UloquCr4RsBu2oxmMboo32m9fgIOG2HD9pIKuGd3 CE6R9flZUXsBfCk8yyy7D1lIu79rdpDyyW3KZUB71Rz/hbWKkuVQ4wKo/u3R19kLvh9A IBjcU0Zf17SPKZcbLfP4I+oGQuoxX5ciw7Dio= Received: by 10.141.177.10 with SMTP id e10mr240164rvp.72.1216872387650; Wed, 23 Jul 2008 21:06:27 -0700 (PDT) Received: from tim-judds-mac-mini.local ( [76.113.34.1]) by mx.google.com with ESMTPS id c20sm12809796rvf.1.2008.07.23.21.06.26 (version=SSLv3 cipher=RC4-MD5); Wed, 23 Jul 2008 21:06:27 -0700 (PDT) Message-ID: <4887FFC1.3030001@gmail.com> Date: Wed, 23 Jul 2008 22:06:25 -0600 From: Tim Judd User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: sgmayo@mail.bloomfield.k12.mo.us References: In-Reply-To: <2841.204.184.27.217.1216664835.squirrel@mail.bloomfield.k12.mo.us> In-Reply-To: <2841.204.184.27.217.1216664835.squirrel@mail.bloomfield.k12.mo.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org, openldap-software@OpenLDAP.org Subject: Re: Slapd not starting 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: Thu, 24 Jul 2008 04:32:13 -0000 sgmayo@mail.bloomfield.k12.mo.us wrote: > I was having some troubles with the samba install telling me that openldap > 2.3.42 and 2.4.10 would conflict. I had installed openldap 2.4.10 server > and I guess that was the problem. It seemed to start up just fine, but > since I could not get samba to install and it kept giving me the error > that the clients would conflict, I decided just to uninstall 2.4.10 and > install the 2.3.42. > > Now when I try to /usr/local/etc/rc.d/slapd start, it just seems to sit > there and then goes back to the prompt. > > I checked the port with sockstat -4 -p 389 and it is not running. I don't > see anything in the /var/log/messages about it so I am not sure what is > going on. > > I am confused why 2.4.1 seemd to run fine, but 2.3.42 does not even though > the config files are the same. Thanks for any info. > > > > Here is my /usr/local/etc/openldap/ldap.conf > > SIZELIMIT 200 > HOST 127.0.0.1 > URI ldap://server.bloomfield.k12.mo.us > ssl start_tls > tls_cacert /etc/ssl/cacert.crt > > and here is my /usr/local/etc/openldap/slapd.conf > > include /usr/local/etc/openldap/schema/core.schema > include /usr/local/etc/openldap/schema/cosine.schema > include /usr/local/etc/openldap/schema/nis.schema > include /usr/local/etc/openldap/schema/inetorgperson.schema > include /usr/local/etc/openldap/schema/samba.schema > > pidfile /var/run/openldap/slapd.pid > argsfile /var/run/openldap/slapd.args > logfile /var/log/slapd.log > loglevel -1 > sizelimit -1 > > modulepath /usr/local/libexec/openldap > moduleload back_bdb > > security ssf=128 > TLSCertificateFile /etc/ssl/cert.crt > TLSCertificateKeyFile /etc/ssl/cert.key > TLSCACertificateFile /etc/ssl/cacert.crt > > database bdb > suffix "dc=server,dc=bloomfield.k12.mo.us" > rootdn "cn=Manager,dc=server,dc=bloomfield.k12.mo.us" > > rootpw ####### > > directory /var/db/openldap-data > > index objectClass eq > index cn,sn,uid,displayName pres,sub,eq > index uidNumber,gidNumber eq > index sambaSID eq > index sambaPrimaryGroupSID eq > index sambaDomainName eq > index memberUID eq > index default > > A 2.4.x database already established (as soon as 2.4 was run) may not be compatible with 2.3.x (not verified). the missing rc.conf values to start 2.3? and OpenLDAP won't log to ANYTHING until configured to do so. I'm going from memory on this last peice ------ in slapd.conf, insert a "loglevel 256" statement anywhere before the database definitions in /etc/syslog.conf define before the middle chunk of comments (seems it's picky) you need to add EITHER (which I think is the latter of these two): slapd.* /var/log/slapd.log -OR- local4.* /var/log/slapd.log touching (creating) /var/log/slapd.log to create the file, restarting syslogd restart slapd That should start logging. Now why it's not any easier to setup, I don't know. HTH.