OpenLDAP error... can't find slapd.conf
I'm having issues with trying to start OpenLDAP services on my virtual server. I've been following installing and configuring OpenLDAP via this guide, but it's definitely skimming over where it should go into greater detail. It mentions that most of the defaults for dpkg-reconfigure slapd are good, but making sure to put in your correct FQDN. After numerous tries doing this method, I decided to stop using dpkg to configure slapd and simply edit the /etc/ldap/slapd.conf.
I've input my necessary info for my domain, and saved it, but after trying to stop or start slapd, this is the error I get:
"No Configuration file was found for slapd at /etc/ldap/slapd.conf.
If you have moved the slapd configuration file please modify
/etc/default/slapd to reflect this. If you choose not to configure slapd during installation then you need to do so prior to attempting to start slapd."
I checked out /etc/default/slapd, and the first option I see is:
#Default location for the slapd.conf configuration file. If empty use the
#compiled in default (/etc/ldap/slapd.conf). If using the cn=config backend to
#store configuration in LDIF, set this variable to the directory containing
Leaving it empty gives the the "No Configuration file was found" error. I'm confused. Anyone have any ideas?
Please don't bump posts - the system will do this itself, and you'll simply get a lot of members offside doing so.
Can you show
ls -l /etc/ldap
andrew@server:~$ ls -l /etc/ldap
-rw-r--r-- 1 root root 245 2008-08-05 16:21 ldap.conf
drwxr-xr-x 2 root root 4096 2008-08-05 16:21 sasl2
drwxr-xr-x 2 root root 4096 2009-04-23 05:06 schema
-rw-r----- 1 root openldap 4744 2009-04-23 05:25 slapd.conf
andrew@server:~$ cat /etc/default/slapd
# Default location of the slapd.conf file. If empty, use the compiled-in
# default (/etc/ldap/slapd.conf). If using the cn=config backend to store
# configuration in LDIF, set this variable to the directory containing the
# cn=config data.
# System account to run the slapd server under. If empty the server
# will run as root.
# System group to run the slapd server under. If empty the server will
# run in the primary group of its user.
# Path to the pid file of the slapd server. If not set the init.d script
# will try to figure it out from $SLAPD_CONF (/etc/ldap/slapd.conf by
# slapd normally serves ldap only on all TCP-ports 389. slapd can also
# service requests on TCP-port 636 (ldaps) and requests via unix
# Example usage:
# SLAPD_SERVICES="ldap://127.0.0.1:389/ ldaps:/// ldapi:///"
# If SLAPD_NO_START is set, the init script will not start or restart
# slapd (but stop will still work). Uncomment this if you are
# starting slapd via some other means or if you don't want slapd normally
# started at boot.
# If SLAPD_SENTINEL_FILE is set to path to a file and that file exists,
# the init script will not start or restart slapd (but stop will still
# work). Use this for temporarily disabling startup of slapd (when doing
# maintenance, for example, or through a configuration management system)
# when you don't want to edit a configuration file.
# For Kerberos authentication (via SASL), slapd by default uses the system
# keytab file (/etc/krb5.keytab). To use a different keytab file,
# uncomment this line and change the path.
# Additional options to pass to slapd
Thanks for any ideas.
I have a similar problem with my openldap configuration.
I'm on Ubuntu 8.10 and openldap version is 2.4.11.
When i installed openldap, I did a dpkg-reconfigure to setup domain, password, etc...
In my ldap directory (/etc/ldap) slapd.conf is missing.
I thought it was about dpkg-reconfigure, and removed openldap from my system, installed again and it's the same... (I noticed that the configuration I did on dpgk-reconfigure is the same after re-installation without doing the reconfigure).
Do you have any idea about that.
The slapd.conf is depreciated, all of the configuration is now stored in the database itself (though it is possible to use the old method too)
Hi Zeos, Thanks four your reply.
I omitted to tell that I'm using openldap for egroupware 1.6
I found this the howto for ubuntu 8.10 on internet, and I did it. This is a nice procedure, but my problem is a little more complicated. I made a new schema like explained for mozillaorgperson, I inserted it on slapd.d by ldapadd. After doing that, I was able to create new entries, etc...
As I'm on Ubuntu, and openLDAP do not support full DN for PosixGroup, I found on a forum that I need to replace NIS schema by RFC2703bis schema. The problem is that NIS schema is used on openldap and cannot be deleted if server is up.
I tried a lot of things, like create a new schema (with slaptest as in Ubuntu howto), modify headers and copy it widely on slapd.d, the result is that openldap is not able to start now :(
I'm a little bit disappointed, and I don't know what to do.
Maybe the best way should be to create a slapd.conf file and convert it into slapd.d by slaptest.
Have you got any idea?
try to use " sudo " before your command
sudo /etc/init.d/slapd start
|All times are GMT -5. The time now is 03:15 PM.|