From owner-freebsd-questions@FreeBSD.ORG Fri May 9 12:51:03 2008 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 CFBD31065670 for ; Fri, 9 May 2008 12:51:03 +0000 (UTC) (envelope-from lists@webtent.net) Received: from esmtp.webtent.net (esmtp.webtent.net [208.38.145.5]) by mx1.freebsd.org (Postfix) with ESMTP id A17228FC15 for ; Fri, 9 May 2008 12:51:03 +0000 (UTC) (envelope-from lists@webtent.net) Received: from localhost (localhost [127.0.0.1]) by esmtp.webtent.net (WebTent ESMTP Postfix Internet Mail Gateway) with ESMTP id A716C8026C for ; Fri, 9 May 2008 08:36:01 -0400 (EDT) Received: from esmtp.webtent.net ([127.0.0.1]) by localhost (esmtp.webtent.net [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 82760-07 for ; Fri, 9 May 2008 08:36:01 -0400 (EDT) Received: from [70.110.70.43] (columbus.webtent.org [70.110.70.43]) by esmtp.webtent.net (WebTent ESMTP Postfix Internet Mail Gateway) with ESMTP id 3932380266 for ; Fri, 9 May 2008 08:36:01 -0400 (EDT) From: Robert Fitzpatrick To: FreeBSD Content-Type: text/plain Organization: WebTent Networking, Inc. Date: Fri, 09 May 2008 08:36:00 -0400 Message-Id: <1210336560.28281.43.camel@columbus.webtent.org> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: WebTent Mailguard 1.0.2a Subject: slapd won't start with nss_ldap.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: robert@webtent.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 May 2008 12:51:03 -0000 On a FreeBSD 6.1 with openldap-server-2.3.39, I have setup nss_ldap and pam_ldap, but cannot get slapd to start as long as I have nss_ldap.conf present, it just hangs and nothing in the messages or debug logs. I just copied ldap.conf to nss_ldap.conf, see contents below. As soon as I rm the nss_ldap.conf file, slapd starts without delay, but of course, our logins, etc. do not work until I re-create the file or symlink to ldap.conf afterward... host 127.0.0.1 base dc=example,dc=com binddn cn=manager,dc=example,dc=com bindpw secret nss_base_passwd ou=People,dc=example,dc=com?one nss_base_shadow ou=People,dc=example,dc=com?one nss_base_group ou=group,dc=example,dc=com?one I have verified all the above to work with simple binds and all is fine after slapd is started and nss_ldap.conf is in place. I have openldap working with postfix and cyrus-imapd a long time on this box and now using with samba for file shares, but have this issue with nss_ldap.conf and trying to smooth out my boot process. Can someone suggest a solution or point me to some info for help? I am also have a hard time getting slapd to start early on boot. I am using the port install built WITH_RCORDER=yes, but it still starts near the end of the boot. Is there something more that I need to do and somewhere to check that WITH_RCORDER=yes in make.conf was applied during build? Any suggestion from someone experienced would be appreciated. -- Robert