After installing the net/openldap2 port, I am unable to connect with ldapsearch
to the TCPv4 port (389), but the TCPv6 port works. Checking the output of
netstat -a | grep ldap, only the TCPv6 port is listed:
current# netstat -a | grep ldap
tcp6 0 0 *.ldap *.* LISTEN
A search thru the OpenLDAP archives resulted in a similar problem on NetBSD:
Fix: Change slapd.sh to start slapd with -h "ldap://[::] ldap://0.0.0.0";
The following msg mentions that NetBSD has 'mapped addresses' off by
default, and that enabling this will also cause OpenLDAP v2 to bind to
both the TCPv4 & TCPv6 ports. Do we have this option of FreeBSD?
Install OpenLDAP2 and try to connect to the TCPv4 port with ldapsearch.