From owner-freebsd-questions@FreeBSD.ORG Thu Apr 29 08:20:28 2004 Return-Path: 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 0031F16A4CE for ; Thu, 29 Apr 2004 08:20:27 -0700 (PDT) Received: from ws1.cnweb.com (ws1.cnweb.com [207.91.1.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D5DE43D49 for ; Thu, 29 Apr 2004 08:20:27 -0700 (PDT) (envelope-from darryl@osborne-ind.com) Received: (qmail 14438 invoked from network); 29 Apr 2004 15:21:10 -0000 Received: from p245n23.ruraltel.net (HELO darryl) (24.225.23.245) by spkg.com with SMTP; 29 Apr 2004 15:21:10 -0000 From: "Darryl Hoar" To: Date: Thu, 29 Apr 2004 10:20:22 -0500 Message-ID: <002401c42dfd$7dcc8df0$0701a8c0@darryl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4939.300 Importance: Normal Subject: OpenLdap question - solved X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: darryl@osborne-ind.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2004 15:20:28 -0000 >>Greetings, >>I am trying to setup OpenLdap 2.0.25 from ports, >>on Freebsd 5.1-release. everything is installed no >>problem. openldap is started and shows running >>in the process list. >> >>when I try to ldapadd, I get the error: >> >>ldap_bind: Can't contact LDAP server. >>I have started and stopped it, with no change in >>the error. The log shows clean without error. >> >>when I netstat -a, I see: >> >>Proto Recv-Q Send-Q Local Address Foreign Address (state) >>tcp6 0 0 *.ldap *.* LISTEN >> >>among other entries. this is the only one for ldap though. >> >>It appears to only be listening for tcp6 protocol, not tcp4. How do I >>change this ? >> >>thanks, >>Darryl Well, I hate to answer my own question , but to help others that might search later, here it it. The problem ( if it is one), is that the startup script located in /usr/local/etc/rc.d called slapd.sh has a configurable argument that launches slapd either listening for tcp4, tcp6 or both. The default script ( the one installed as part of the port make, make install routine) is set with no arguments specified. The result is that slapd only listens for tcp6 traffic. The comments in the code show examples of arguments to get it to listen to tcp4. Once I set the argument string properly in the slapd.sh file, it listens for tcp4 and thus responds when queried. Sorry for the wasted bandwith.