restore - Error while installing openldap server on ubuntu 14.04 mkdir: cannot create directory `/etc/ldap/slapd.conf': File exists -
i trying setup ldap server on ubuntu 14.04. had previous ldap server setup installed on centos 6 uses flat-file configuration i.e slapd.conf method ldap.
now want setup openldap server on ubuntu 14.04. placed contents /etc/openldap centos in /etc/ldap on ubuntu. when seek install ldap using following
$ sudo apt-get install slapd
i getting below error:
setting slapd (2.4.31-1ubuntu2) ... creating initial configuration... mkdir: cannot create directory `/etc/ldap/slapd.conf': file exists dpkg: error processing slapd (--configure): subprocess installed post-installation script returned error exit status 1 errors encountered while processing: slapd e: sub-process /usr/bin/dpkg returned error code (1)
i removed database files /var/lib/ldap/
$ sudo rm -rf /var/lib/ldap/*
then, tried convert slapd.conf slapd.d using
$ sudo slaptest -f slapd.conf -f slapd.d
i error below.
unrecognized database type (bdb) 546470b0 slapd.conf: line 99: <database> failed init (bdb) slaptest: bad configuration directory!
what should done in order utilize slapd.conf of own , configure database.
the next command converts slapd.conf slapd.d:
slaptest -f slapd.conf -f slapd.d
restore configure ubuntu-14.04 openldap
No comments:
Post a Comment