[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Can't start ldap or can't create ldap database.

I tried to start slapd , the error shown it is caused by the TLS error:

Jun 21 18:53:42 hometest slapd[1709]: @(#) $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 18:53:42 hometest slapd[1709]: main: TLS init def ctx failed: -1
Jun 21 18:53:42 hometest slapd[1709]: slapd stopped.
Jun 21 18:53:42 hometest slapd[1709]: connections_destroy: nothing to destroy.


sam wrote:

With the following configuration:

hometest:openldap # uname -a
FreeBSD hometest.ip6.com.au 8.1-RC1 FreeBSD 8.1-RC1 #0: Fri Jun 18 15:26:58 EST 2010 root@hometest.ip6.com.au:/usr/obj/usr/src/sys/mail.db.java.portal i386
hometest:openldap # pkg_info | grep -i ldap
openldap-sasl-client-2.4.22 Open source LDAP client implementation with SASL2 support
openldap-sasl-server-2.4.22 Open source LDAP server implementation
hometest:openldap # pkg_info | grep -i db
db46-       The Berkeley DB package, revision 4.6
hometest:openldap # pkg_info | grep -i cyrus
cyrus-imapd-2.3.16_1 The cyrus mail server, supporting POP3 and IMAP4 protocols cyrus-sasl-2.1.23 RFC 2222 SASL (Simple Authentication and Security Layer)
cyrus-sasl-saslauthd-2.1.23 SASL authentication server for cyrus-sasl2

I got the following error when I tried to add from initial.ldif file into the ldap database:

hometest:openldap # ldapadd -x -D "cn=Manager,dc=ip6,dc=com,dc=au" -W -f initial.ldif
Enter LDAP Password:
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)

Here is the content of initial.ldif file:

hometest:openldap # cat initial.ldif
dn: dc=ip6,dc=com,dc=au
objectClass: top
objectClass: dcObject
objectClass: organization
o: IP6 Networks
dc: ip6

# super user node
dn: cn=root,dc=ip6,dc=com,dc=au
objectclass: organizationalRole
objectclass: simpleSecurityObject
cn: root
description: LDAP administrator
userPassword: {MD5}cW2LX0AjZxSBzv/mflD3xQ==

Can anyone tell me how resolve this issue?

Your help is very much appreciated.