在配置了$PKG_PATH变量的情况下:
#pkg_add -v openldap-server
否则:
#pkg_add -v ftp://ftp.openbsd.org/pub/OpenBSD/4.6/packages/i386/openldap-server-2.3.43.tgz
安装完成后,按照下面的提示配置rc.conf.local和rc.local:
========================================================================
— openldap-server-2.3.43 ——————-
To start slapd, configure it in /etc/openldap/slapd.conf then add
the following line to /etc/rc.conf.local:
slapd_flags=”-u _openldap”
and to /etc/rc.local (be sure to start it _before_ any daemon that may
need it):