Но модуля back_ldbm нет в папке modules , а все остальные есть
версии:
openldap24-server
openldap24-client
rc.conf
Код: Выделить всё
slapd_enable="YES"
slapd_flags='-h "ldapi://%2fvar%2frun%2fopenldap%2fldapi/ ldap://0.0.0.0/"'
slapd_sockets="/var/run/openldap/l[/color]dapi"Код: Выделить всё
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
pidfile /var/run/openldap/slapd.pid
argsfile /var/run/openldap/slapd.args
modulepath /usr/local/libexec/openldap
# moduleload back_bdb
# moduleload back_hdb
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
database ldbm
suffix "dc=11523,dc=ru"
rootdn "cn=root,dc=11523,dc=ru"
rootpw secret
directory /var/db/openldap-data
index objectClass eq
index cn eq
loglevel 256Код: Выделить всё
#cd /usr/local/libexec/openldap | ls -l
lrwxr-xr-x 1 root wheel 17 Feb 22 09:59 back_bdb-2.4.so -> back_bdb-2.4.so.7
-rwxr-xr-x 1 root wheel 192679 Feb 22 09:59 back_bdb-2.4.so.7
-rwxr-xr-x 1 root wheel 1050 Feb 22 09:59 back_bdb.la
lrwxr-xr-x 1 root wheel 17 Feb 22 09:59 back_bdb.so -> back_bdb-2.4.so.7
lrwxr-xr-x 1 root wheel 17 Feb 22 09:59 back_hdb-2.4.so -> back_hdb-2.4.so.7
-rwxr-xr-x 1 root wheel 197289 Feb 22 09:59 back_hdb-2.4.so.7
-rwxr-xr-x 1 root wheel 1050 Feb 22 09:59 back_hdb.la
lrwxr-xr-x 1 root wheel 17 Feb 22 09:59 back_hdb.so -> back_hdb-2.4.so.7
lrwxr-xr-x 1 root wheel 18 Feb 22 09:59 back_ldap-2.4.so -> back_ldap-2.4.so.7
-rwxr-xr-x 1 root wheel 139283 Feb 22 09:59 back_ldap-2.4.so.7
-rwxr-xr-x 1 root wheel 1047 Feb 22 09:59 back_ldap.la
lrwxr-xr-x 1 root wheel 18 Feb 22 09:59 back_ldap.so -> back_ldap-2.4.so.7
lrwxr-xr-x 1 root wheel 18 Feb 22 09:59 back_meta-2.4.so -> back_meta-2.4.so.7
-rwxr-xr-x 1 root wheel 124840 Feb 22 09:59 back_meta-2.4.so.7
-rwxr-xr-x 1 root wheel 1047 Feb 22 09:59 back_meta.la
lrwxr-xr-x 1 root wheel 18 Feb 22 09:59 back_meta.so -> back_meta-2.4.so.7
lrwxr-xr-x 1 root wheel 21 Feb 22 09:59 back_monitor-2.4.so -> back_monitor-2.4.so.7
-rwxr-xr-x 1 root wheel 108296 Feb 22 09:59 back_monitor-2.4.so.7
-rwxr-xr-x 1 root wheel 1065 Feb 22 09:59 back_monitor.la
lrwxr-xr-x 1 root wheel 21 Feb 22 09:59 back_monitor.so -> back_monitor-2.4.so.7
lrwxr-xr-x 1 root wheel 18 Feb 22 09:59 back_null-2.4.so -> back_null-2.4.so.7
-rwxr-xr-x 1 root wheel 11864 Feb 22 09:59 back_null-2.4.so.7
-rwxr-xr-x 1 root wheel 1047 Feb 22 09:59 back_null.la
lrwxr-xr-x 1 root wheel 18 Feb 22 09:59 back_null.so -> back_null-2.4.so.7
# /usr/local/etc/rc.d/slapd.sh start
Starting slapd.
/usr/local/etc/rc.d/slapd.sh: WARNING: failed to start slapdКод: Выделить всё
Feb 22 10:41:30 servermail slapd[1766]: @(#) $OpenLDAP: slapd 2.4.22 (Feb 22 2011 09:54:01) $ admin@servermail:/usr/ports/net/openldap24-server/work/openldap-2.4.22/servers/sl
Feb 22 10:41:30 servermail slapd[1766]: lt_dlopenext failed: (back_ldbm) file not found
Feb 22 10:41:30 servermail slapd[1766]: slapd stopped.
Feb 22 10:41:30 servermail slapd[1766]: connections_destroy: nothing to destroy.