Hello,
I am using Fedora12. I installed the following packages:
openldap-servers-2.4.19-1.fc12.x86_64
openldap-clients-2.4.19-1.fc12.x86_64
openldap-2.4.19-1.fc12.x86_64
db4-4.7.25-13.fc12.x86_64
My configuration file looks like this:
database bdb
suffix "dc=eurobluelife,dc=ro"
checkpoin 1024 15
rootdn "cn=Manager,dc=eurobluelife,dc=ro"
rootpw secret
directory /var/lib/ldap
index objectClass eq,pres
index ou,cn,mail,surname,givenname eq,pres,sub
index uidNumber,gidNumber,loginShell eq,pres
index uid,memberUid eq,pres,sub
index nisMapName,nisMapEntry eq,pres,sub
database monitor
access to *
by * read
I started slapd with service slapd start and it gives me the message
[root@ns1 openldap]# service slapd start
Checking configuration files for slapd: [WARNING]
bdb_db_open: warning - no DB_CONFIG file found in directory /var/lib/ldap: (2).
Expect poor performance for suffix "dc=my-domain,dc=com".
config file testing succeeded
Starting slapd: [ OK ]
When i issue the command ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts it returns :
# extended LDIF
#
# LDAPv3
# base <> with scope baseObject
# filter: (objectclass=*)
# requesting: namingContexts
#
#
dn:
namingContexts: dc=my-domain,dc=com
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
QUESTION: Why slapd does not start with the naming context from the config file (dc=eurobluelife,dc=ro) ?
In startup script /etc/init.d/slapd I found the folowing line
configfile=/etc/openldap/slapd.conf, wich means it's starting whith config from /etc/openldap/slapd.conf
The /etc/openldap/slapd.conf has the following access permissions
-rw-r-----. 1 root root 4113 2010-01-25 16:36 slapd.conf
slapd started with the folowing args:
[root@ns1 ~]# ps -aux | grep slapd
ldap 6661 0.0 0.1 224208 5532 ? Ssl 16:40 0:00 /usr/sbin/slapd -h ldap:/// -u ldap
Where should I dig, what I'm doing wrong ?