Date: Thu, 29 Apr 2004 10:20:22 -0500 From: "Darryl Hoar" <darryl@osborne-ind.com> To: <freebsd-questions@freebsd.org> Subject: OpenLdap question - solved Message-ID: <002401c42dfd$7dcc8df0$0701a8c0@darryl>
next in thread | raw e-mail | index | archive | help
>>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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002401c42dfd$7dcc8df0$0701a8c0>