Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105611 - Update to ldap-howto.xml (slapd fails to start due to /etc/openldap/ssl/ldap.pem)
Summary: Update to ldap-howto.xml (slapd fails to start due to /etc/openldap/ssl/ldap....
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-11 09:36 UTC by Bernard Guillot
Modified: 2005-10-21 13:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ldap-howto.xml.patch (ldap-howto.xml.patch,359 bytes, patch)
2005-10-06 17:02 UTC, nm (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bernard Guillot 2005-09-11 09:36:37 UTC
The missing bit is that after you create the SSL Certificates of LDAP the
owner:group is now root:root for /etc/openldap/ssl/ldap.pem and ensures that
slapd cannot start. Since the default chmod is 640 this file must be readable by
ldap.



Reproducible: Always
Steps to Reproduce:
1.create SSL Certificates as root
2.add OPT=-d 255 to /etc/conf.d/slapd
3./etc/init.d/slapd start

Actual Results:  
Fails To Start slapd with message cannot use /etc/openldap/ssl/ldap.pem 

Expected Results:  
Started.

Modify the documentation en/ldap-howto.xml like this

--- en/ldap-howto.xml   2005-06-11 03:14:13.000000000 +0800
+++ en/ldap-howto-bguillot.xml  2005-09-11 23:10:50.000000000 +0800
@@ -215,6 +215,8 @@ the server. This is usually the full dom
 # <i>cd /etc/ssl</i>
 # <i>openssl req -config /etc/ssl/openssl.cnf -new -x509 -nodes -out \
 ldap.pem -keyout /etc/openldap/ssl/ldap.pem -days 999999</i>
+
+chown ldap:ldap /etc/openldap/ssl/ldap.pem
 </pre>

 <p>
Comment 1 nm (RETIRED) gentoo-dev 2005-10-06 17:02:36 UTC
Created attachment 70025 [details, diff]
ldap-howto.xml.patch

This has the suggested fix for the document as in the above comment, but in a
palatable .patch form. :)
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2005-10-21 13:44:13 UTC
Thanks a lot ! :)