From owner-freebsd-stable@FreeBSD.ORG Mon Jul 10 13:06:01 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1821E16A4DA for ; Mon, 10 Jul 2006 13:06:01 +0000 (UTC) (envelope-from dzalewski@open-craft.com) Received: from zeus.lunarpages.com (zeus.lunarpages.com [216.193.211.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFF0943D49 for ; Mon, 10 Jul 2006 13:06:00 +0000 (GMT) (envelope-from dzalewski@open-craft.com) Received: from [196.218.200.205] (helo=[10.0.0.189]) by zeus.lunarpages.com with esmtpa (Exim 4.52) id 1FzvT8-0001sV-MR; Mon, 10 Jul 2006 06:06:35 -0700 From: Dominik Zalewski Organization: OpenCraft To: freebsd-stable@freebsd.org Date: Mon, 10 Jul 2006 16:00:56 +0300 User-Agent: KMail/1.9.3 References: <200607101327.23403.dzalewski@open-craft.com> <200607102113.14004.doconnor@gsoft.com.au> In-Reply-To: <200607102113.14004.doconnor@gsoft.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607101600.56911.dzalewski@open-craft.com> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - zeus.lunarpages.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - open-craft.com X-Source: X-Source-Args: X-Source-Dir: Cc: "UEMURA \(fka. MAENAKA\) Tetsuya" Subject: Re: slapd - slow starting X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jul 2006 13:06:01 -0000 On Monday 10 July 2006 14:43, Daniel O'Connor wrote: > On Monday 10 July 2006 19:57, Dominik Zalewski wrote: > > I'm using FreeBSD 6.1-STABLE on i386. I have installed openldap-server , > > pam_ldap , nss_ldap. During booting and when I > > do /usr/local/etc/rc.d/slapd.sh start , its taking very long time to > > start. Here is what I'm getting in logfile: > > You might want to move the file to /etc/rc.d so it can get started earlier. > > I changed the headers to look like so too.. > # PROVIDE: slapd > # REQUIRE: NETWORKING > # BEFORE: securelevel > # KEYWORD: FreeBSD shutdown > > My /etc/nsswitch.conf is.. > group: files ldap > hosts: files dns > networks: files > passwd: files ldap > shells: files Still the same problem. I tried also to change bind_policy to soft. Can you show me your nss_ldap.conf ? Problem is after I change things in /dev/nsswitch.conf. If I live it like this: group: compat hosts: files dns networks: files passwd: compat shells: files I start slapd using /etc/rc.d/slapd start , then I change /etc/nsswitch.conf to: group: files ldap hosts: files dns networks: files passwd: files ldap shells: files Everything is fine and users can login via ssh using their ldap password. I can boot server with first configuration and run some script that will copy second nsswitch.conf , but I dont like this solution and I dont understand why its not working. Any help welcome :) Dominik