Сначала не захотел запускаться скрипт slapd.sh с аргументом start (status и stop - прекрасно работают), ну это ладно - запускаю пока вручную (/usr/local/libexec/slapd)
А Теперь вроде и сервер запущен, а ldif-ы цеплять не хочет:
Код: Выделить всё
#/usr/local/etc/rc.d/slapd.sh start
Starting slapd.
#/usr/local/etc/rc.d/slapd.sh status
slapd is not running.
#ldapadd -D 'cn=admin dc=sibdel, dc=com' -f base.ldif -W -x -h 127.0.0.1
Enter LDAP Password:
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
#/usr/local/libexec/slapd
#/usr/local/etc/rc.d/slapd.sh status
slapd is running as pid 877.
#ldapadd -D 'cn=admin dc=sibdel, dc=com' -f base.ldif -W -x -h 127.0.0.1
Enter LDAP Password:
ldap_bind: Invalid credentials (49)
Код: Выделить всё
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/inetorgperson.schema
pidfile /var/run/openldap/slapd.pid
argsfile /var/run/openldap/slapd.args
# Загружаем модули и указываем путь где они лежат:
modulepath /usr/local/libexec/openldap
moduleload back_bdb
#######################################################################
# BDB database definitions
#######################################################################
database bdb
suffix "dc=siblogic,dc=ru"
#rootdn "dc=siblogic,dc=ru"
rootdn "cn=admin,dc=siblogic,dc=ru"
# Cleartext passwords, especially for the rootdn, should
# be avoid. See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw 123
#rootpw {SSHA}E/k2Rjl5/ClhLXO6jHsG28QqcqzFvk3K
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory /var/db/openldap-data
# Indices to maintain
loglevel 256
index objectClass eq