LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   OpenLDAP (https://www.linuxquestions.org/questions/linux-software-2/openldap-502360/)

velu.net 11-16-2006 08:24 PM

OpenLDAP
 
Hi,

I am new to OpenLDAP. Trying to get OpenLDAP to run. Did my configurations for the slapd.conf, ldap.conf but openldap does not start when i issue this command from my Gentoo box:

# /etc/init.d/slapd start
* Starting ldap-server ... [ !! ]


Can anyone advise me on what is wrong? Here is my slapd.conf file.

include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema

TLSCertificateFile /etc/ssl/ldap.pem
TLSCertificateKeyFile /etc/openldap/ssl/ldap.pem
TLSCACertificateFile /etc/ssl/ldap.pem

pidfile /var/run/openldap/slapd.pid
argsfile /var/run/openldap/slapd.args

database ldbm
suffix "dc=example,dc=com"
rootdn "cn=root,example,dc=com"
rootpw secret

directory /var/lib/openldap-ldbm
checkpoint 32 30 # <kbyte> <min>

index objectClass eq


This is my ldap.conf

BASE dc=example, dc=com
URI ldap://localhost:389/
TLS_REQCERT allow


TQ
:newbie:

velu.net 11-16-2006 08:34 PM

Found out why it did not start
 
:D

Hi,

One part of me is happy, the othr feels dumb... I realised that I had made mistake in my slapd.conf file.

database bdb
suffix "dc=example"
rootdn "cn=root,dc=example"


I replaced this portion of the slapd.conf and ldap starts without problem.

:jawa:


All times are GMT -5. The time now is 12:11 AM.