Mantis - openldap
Viewing Issue Advanced Details
4521 packaging minor have not tried 2010-08-13 22:43 2010-12-01 15:00
dorix  
dam  
normal  
closed  
fixed  
none    
none  
0004521: openldaprc file is missing, slapd.conf not found by service start method
A fresh install of CSWopenldap 2.4.22,REV=2010.06.08 on a new zone immediately comes up in maintenance state. The service start method looks for the non-existent openldaprc file in /etc/opt/csw and /opt/csw/etc, fails to find it, and tries to fall back on the now-incorrect default location for slapd.conf and slapd.d: /opt/csw/etc/openldap/slapd.conf and /opt/csw/etc/openldap/slapd.d.

Comments in /var/opt/csw/svc/method/svc-cswopenldap say to copy the openldaprc template file from /opt/csw/share/doc/openldap to /etc/opt/csw, but there is no openldaprc template file in /opt/csw/share/doc/openldap.
# grep DEF_ /var/opt/csw/svc/method/svc-cswopenldap
DEF_SLAPD_CONFIG_FILE=/opt/csw/etc/openldap/slapd.conf
DEF_SLAPD_CONFIG_DIR=/opt/csw/etc/openldap/slapd.d

# glocate slapd.conf
/etc/opt/csw/openldap/slapd.conf
/etc/opt/csw/openldap/slapd.conf.default
/opt/csw/share/man/man5/slapd.conf.5

# glocate openldaprc
#
Issue History
2010-08-13 22:43 dorix New Issue
2010-10-20 00:00 gadavis Note Added: 0008382
2010-11-23 15:14 dam Status new => assigned
2010-11-23 15:14 dam Assigned To => dam
2010-11-23 15:18 dam Note Added: 0008486
2010-11-23 15:18 dam Status assigned => feedback
2010-11-26 16:23 dorix Note Added: 0008503
2010-12-01 15:00 dam Note Added: 0008511
2010-12-01 15:00 dam Status feedback => closed
2010-12-01 15:00 dam Resolution open => fixed

Notes
(0008382)
gadavis   
2010-10-20 00:00   
+1 for a fix, this was a frustrating bug to stumble upon.
(0008486)
dam   
2010-11-23 15:18   
The locations have been adjusted in
  http://sourceforge.net/apps/trac/gar/changeset/11354 [^]
An updated package 2.4.23,REV=2010.11.17 has been released to current/.
(0008503)
dorix   
2010-11-26 16:23   
Works great on a brand new Solaris zone now. Thanks!
(0008511)
dam   
2010-12-01 15:00   
Closing after user verification.