ClearFoundation Tracker - ClearOS
View Issue Details
0020811ClearOSapp-openldap - OpenLDAP Driverpublic2018-07-18 09:392019-02-23 12:58
user2 
dloper 
normaltweakhave not tried
closedsuspended 
7.5.0 
7.6.0 Updates 
0020811: Fix OpenLDAP certificate issue
The bootstrap certificates can be mismatched in some cases. Here's the problematic bit of code:

KEY_SOURCE=/etc/pki/CA/bootstrap.key
KEY=/etc/openldap/cacerts/key.pem

if [ ! -s "$KEY" ]; then
    logger -p local6.notice -t installer "app-openldap-core - prepping server key"
    cp $KEY_SOURCE $KEY
    chown root.ldap $KEY
    chmod 640 $KEY
fi

CRT_SOURCE=/etc/pki/CA/bootstrap.crt
CRT=/etc/openldap/cacerts/cert.pem

if [ ! -s "$CRT" ]; then
    logger -p local6.notice -t installer "app-openldap-core - prepping server certificate"
    cp $CRT_SOURCE $CRT
    chown root.ldap $CRT
    chmod 640 $CRT
fi


The key/pair should always be copied at the same time.

No tags attached.
related to 0021141closed user2 Create common tool to deploy certificates 
Issue History
2018-07-18 09:39user2New Issue
2018-07-18 09:39user2Statusnew => confirmed
2018-08-14 14:42user2SummaryAdd workaround for OpenLDAP certificate issue => Fix OpenLDAP certificate issue
2018-08-14 14:42user2Description Updatedbug_revision_view_page.php?rev_id=2231#r2231
2018-08-14 14:42user2Relationship addedrelated to 0021141
2018-10-30 14:27user2Target Version7.5.0 Updates => 7.6.0
2019-02-12 15:18dloperTarget Version7.6.0 => 7.6.0 Updates
2019-02-23 12:58dloperNote Added: 0009191
2019-02-23 12:58dloperStatusconfirmed => closed
2019-02-23 12:58dloperAssigned To => dloper
2019-02-23 12:58dloperResolutionopen => suspended

Notes
(0009191)
dloper   
2019-02-23 12:58   
Migrated to: https://gitlab.com/clearos/clearfoundation/app-openldap/issues/1 [^]