On 21 juin 10, at 14:30, sam wrote:
hometest:rc.d # ./slapd start
Starting slapd.
./slapd: WARNING: failed to start slapd
error in log file:
Jun 21 19:39:53 hometest slapd[1813]: @(#) $OpenLDAP: slapd 2.4.22
(Jan 1 2002 00:24:15) $
root@hometest.ip6.com.au:/usr/ports/net/openldap24-server/work/openldap-2.4.22/servers/slapd
Jun 21 19:39:53 hometest slapd[1813]: main: TLS init def ctx
failed: -1
Jun 21 19:39:53 hometest slapd[1813]: slapd stopped.
Jun 21 19:39:53 hometest slapd[1813]: connections_destroy: nothing
to destroy.
Thanks
Sam
After I removed the TLS configuration in slapd.conf file, I managed
to start slapd.
Jun 21 20:36:37 hometest slapd[2092]: @(#) $OpenLDAP: slapd 2.4.22
(Jan 1 2002 00:24:15) $
root@hometest.ip6.com.au:/usr/ports/net/openldap24-server/work/openldap-2.4.22/servers/slapd
Jun 21 20:36:38 hometest slapd[2093]: bdb_db_open: warning - no
DB_CONFIG file found in directory /var/db/openldap-data: (2). Expect
poor performance for suffix "dc=ip6,dc=com,dc=au".
Jun 21 20:36:38 hometest slapd[2093]: slapd starting
here, what is this DB_CONFIG file?
Thanks
Sam
OK, I got that fixed:
# netstat -an | egrep '389|636'
tcp4 0 0 192.168.1.20.636 *.* LISTEN
tcp4 0 0 192.168.1.20.389 *.* LISTEN
But I am still getting the following warning:
bdb_db_open: warning - no DB_CONFIG file found in directory
/var/db/openldap-data: (2). Expect poor performance for suffix
"dc=ip6,dc=com,dc=au".
How to configure DB_CONFIG file for this issue?
On FreeBSD, the following should work:
cp /usr/local/etc/openldap/DB_CONFIG.example
/var/db/openldap-data/DB_CONFIG
chown ldap:ldap /var/db/openldap-data/DB_CONFIG
However, you should read at least the admin guide
http://www.openldap.org/doc/admin24/ and
http://www.openldap.org/faq/data/cache/1072.html.
Thierry