Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 376699 - net-nds/openldap init script should support multiple instances
Summary: net-nds/openldap init script should support multiple instances
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor with 1 vote (vote)
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2011-07-28 09:44 UTC by Janos Pasztor
Modified: 2012-02-12 21:35 UTC (History)
2 users (show)

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


Attachments
Patch for the init script (slapdinit.patch,1004 bytes, patch)
2011-07-28 09:44 UTC, Janos Pasztor
Details | Diff
Updated patch for init script (slapdinit.patch,1.33 KB, patch)
2011-07-28 12:30 UTC, Janos Pasztor
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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