Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 376699

Summary: net-nds/openldap init script should support multiple instances
Product: Gentoo Linux Reporter: Janos Pasztor <pasztor.janos>
Component: Current packagesAssignee: Gentoo LDAP project <ldap-bugs>
Status: RESOLVED FIXED    
Severity: minor CC: janos, pasztor.janos
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch for the init script
Updated patch for init script

Description Janos Pasztor 2011-07-28 09:44:18 UTC
net-nds/openldap supports running multiple instances, so the init script should reflect this. In certain setups running multiple instances is easier, than running multiple databases, because the instances can be restarted separately.

Reproducible: Always

Steps to Reproduce:
none
Actual Results:  
OpenLDAP runs in one instance

Expected Results:  
It should be possible to run multiple OpenLDAP instances using init script symlinking and separate configuration files.
Comment 1 Janos Pasztor 2011-07-28 09:44:54 UTC
Created attachment 281239 [details, diff]
Patch for the init script
Comment 2 Janos Pasztor 2011-07-28 11:51:59 UTC
We just found a bug in the patch, the default config root is /etc/openldap, will fix this soon.
Comment 3 Janos Pasztor 2011-07-28 12:30:37 UTC
Created attachment 281259 [details, diff]
Updated patch for init script

This init script now supports the following directory schemes:

/etc/openldap
/etc/openldap.INSTANCENAME
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-02-12 21:35:11 UTC
Added in 2.4.28-r1, no revbump.
I refactored your patch to be more useful with the new slaptest modifications.
Please test