Сделал все как в статье. В итоге:# /usr/local/etc/rc.d/slapd start
Starting slapd.
# tail /var/log/all.log
...
Dec 10 17:32:40 fs slapd[1387]: @(#) $OpenLDAP: slapd 2.3.43 (Dec 10 2010 16:57:53) $ root@fs.licey.local:/usr/ports/net/openldap23-server/work/openldap-2.3.43/servers/slapd
Dec 10 17:32:40 fs slapd[1387]: nss_ldap: failed to bind to LDAP server ldap://localhost: Can't contact LDAP server
Dec 10 17:32:40 fs slapd[1387]: nss_ldap: could not search LDAP server - Server is unavailable
Dec 10 17:32:40 fs kernel: Dec 10 17:32:40 fs slapd[1387]: nss_ldap: could not search LDAP server - Server is unavailable
Dec 10 17:32:40 fs slapd[1387]: lt_dlopenext failed: (/usr/local/libexec/openldap/smbk5pwd.so) file not found
Dec 10 17:32:40 fs slapd[1387]: slapd stopped.
Dec 10 17:32:40 fs slapd[1387]: connections_destroy: nothing to destroy.
# uname -sr
FreeBSD 7.0-RELEASE
# pkg_info | grep openldap
openldap-client-2.3.43 Open source LDAP client implementation
openldap-server-2.3.43 Open source LDAP server implementation
# cat /usr/local/etc/openldap/slapd.conf
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/inetorgperson.schema
include /usr/local/etc/openldap/schema/misc.schema
include /usr/local/etc/openldap/schema/nis.schema
include /usr/local/etc/openldap/schema/openldap.schema
include /usr/local/etc/openldap/schema/samba.schema
include /usr/local/etc/openldap/schema/dnszone.schema
include /usr/local/etc/openldap/schema/dhcp.schema
pidfile /var/run/openldap/slapd.pid
argsfile /var/run/openldap/slapd.args
modulepath /usr/local/libexec/openldap
moduleload back_ldbm
access to attrs=userPassword
by self write
by anonymous auth
by * none
access to *
by self write
by anonymous read
by * none
#######################################################################
# BDB database definitions
#######################################################################
allow bind_v2
database ldbm
# Load dynamic backend modules:
# http://www.opennet.dev/base/net/samba_ldap_sync.txt.html
moduleload /usr/local/libexec/openldap/smbk5pwd.so
overlay smbk5pwd
suffix "dc=company,dc=local"
rootdn "cn=root,dc=company,dc=local"
rootpw secret
directory /var/db/openldap-data
loglevel 256
index objectClass eq
index cn eq