Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SLAPD no longer starts
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
binro
l33t
l33t


Joined: 06 May 2005
Posts: 724
Location: Bangkok, Thailand

PostPosted: Sun May 31, 2015 2:45 pm    Post subject: SLAPD no longer starts Reply with quote

My server box just got rebooted after a long time and the slapd service won't start. I get the very unhelpful error messages:

    # serv slapd start
    * Directory directory in config does not exist!
    * There is a problem with your slapd.conf!
    * ERROR: slapd failed to start

Here is my slapd.conf:
Code:

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

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

access to dn.base="" by * read
access to dn.base="cn=Subschema" by * read
access to *
   by self write
   by users read
   by anonymous auth
   by dn.base="cn=Manager,dc=xxxx,dc=xxx" write

database   bdb
suffix      "dc=xxxxx,dc=xxx"
rootdn      "cn=Manager,dc=xxxx,dc=xxx"
checkpoint   32   30
rootpw      {SSHA}zzzzzzzzzzzzzzzzzzzzzzzzz
directory   /var/lib/openldap-data
index   objectClass   eq

All the directories referenced exist. Is there some new setting I need?

TIA
_________________
"Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling
Back to top
View user's profile Send private message
binro
l33t
l33t


Joined: 06 May 2005
Posts: 724
Location: Bangkok, Thailand

PostPosted: Tue Jun 02, 2015 2:21 pm    Post subject: Reply with quote

I just backed up my data and config, removed the package and reinstalled it. I get exactly the same error. Running the start command with debug shows the problem is in the Gentoo scripts, not the slapd.conf file.
Code:

+ CONF=/etc/openldap/slapd.conf
+ '[' -d /etc/openldap/slapd.conf ']'
++ eval awk '"/^(directory|olcDbDirectory:)/{print $2}"' /etc/openldap/slapd.conf
+++ awk '/^(directory|olcDbDirectory:)/{print }' /etc/openldap/slapd.conf
+ DBDIRS='directory     /var/lib/openldap-data'
+ for d in '$DBDIRS'
+ '[' '!' -d directory ']'
+ eerror 'Directory directory in config does not exist!'
 * Directory directory in config does not exist!

The DBDIRS variable is not getting set properly. It looks like a bug. :)
_________________
"Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling
Back to top
View user's profile Send private message
binro
l33t
l33t


Joined: 06 May 2005
Posts: 724
Location: Bangkok, Thailand

PostPosted: Tue Jun 02, 2015 3:00 pm    Post subject: Reply with quote

Falling back to version 2.4.38-r2 fixes the problem.
_________________
"Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum