From owner-freebsd-questions@FreeBSD.ORG Sun Feb 5 12:25:26 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA47916A420 for ; Sun, 5 Feb 2006 12:25:26 +0000 (GMT) (envelope-from jancih@zoznam.sk) Received: from be1.mail.zoznam.sk (mail.zoznam.sk [62.65.179.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BA6943D46 for ; Sun, 5 Feb 2006 12:25:25 +0000 (GMT) (envelope-from jancih@zoznam.sk) X-ExtFilter: Niversoft's DomainKeys Helper DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; d=zoznam.sk; s=mx; h=Received:Message-ID:Disposition-Notification-To:Date:From:User-Agent:X-Accept-Language:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=B5KnRqrzy7qDRVYNLhi6cxCUvxRAJYneCl2QzilHgUmNwlAO2MfWYqvyLjgzXVB2z4GK25BTdweVM+hIKXMsOfY8DxMbORU+d2Be0jtD2l0oXx2ziyTwWvxkHCrFF0tRdkAL3Ar2Fqv4kMx3tS4toGCn7FCkOG73Id6teOi218E= X-Spam-Status: No, hits=0.0 required=4.0 Received: from [213.160.190.123] (account jancih@zoznam.sk HELO [172.16.0.100]) by be1.mail.zoznam.sk (CommuniGate Pro SMTP 4.2.8) with ESMTP id 75430911 for freebsd-questions@freebsd.org; Sun, 05 Feb 2006 13:25:23 +0100 Message-ID: <43E5EEA8.3000507@zoznam.sk> Date: Sun, 05 Feb 2006 13:25:12 +0100 From: Jan HREHO User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: SLAPD starting very slow 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: Sun, 05 Feb 2006 12:25:26 -0000 Hi everybody. My configuration. FreeBSD 6.0 + I update ports. All programs I installed over ports I installed LDAP server and client (2.2.30), nss_ldap-1.244, pam_ldap-1.8.0. ********* /usr/local/etc/openldap/slapd.conf**************** *** other lines in this files is defaults *********************** include /usr/local/etc/openldap/schema/core.schema include /usr/local/etc/openldap/schema/corba.schema include /usr/local/etc/openldap/schema/cosine.schema include /usr/local/etc/openldap/schema/dyngroup.schema include /usr/local/etc/openldap/schema/inetorgperson.schema include /usr/local/etc/openldap/schema/java.schema include /usr/local/etc/openldap/schema/misc.schema include /usr/local/etc/openldap/schema/nis.schema include /usr/local/etc/openldap/schema/samba.schema database ldbm suffix "dc=skuska,dc=sk" rootdn "cn=Manager,dc=skuska,dc=sk" rootpw {SSHA}LGpsWFBT/qSdvf7D4hhLny7siy2hDXl4 ******************************************************* While /etc/nsswitch.conf files like next: ************** /etc/nsswitch.conf ************** group: compat group_compat: nis hosts: files dns networks: files passwd: compat passwd_compat: nis shells: files ******************************************** slapd deamon start is fast. While /etc/nsswitch.conf files like next: ************** /etc/nsswitch.conf ************** group: files [NOTFOUND=continue] ldap group_compat: hosts: files dns networks: files passwd: files [NOTFOUND=continue] ldap passwd_compat: shells: files ******************************************** and /usr/local/etc/nss_ldap files like next: ********* /usr/local/etc/nss_ldap.conf**************** *** other lines in this files is defaults *********************** host localhost base dc=skuska,dc=sk ************************************************* slapd deamon start very slow (2-3 minutes) and print to screen next error log: slapd[414]: nss_ldap: could not search LDAP server - Server is unavailable. My question is. Why slapd deamon try to connect to LDAP server, when it start? I read several howto, but without success. What I do wrong? Thank You.