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

Bug 342795

Summary: net-nds/openldap: configuration option (init.d) for increasing open files ulimit for slapd needed
Product: Gentoo Linux Reporter: Huemi <gentoobugs>
Component: [OLD] ServerAssignee: Gentoo LDAP project <ldap-bugs>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Huemi 2010-10-26 17:25:07 UTC
Gentoo uses a default ulimit of 1024 open files. While this will have some benefits, it causes trouble in combination with some packages.

While i.e. for named the number of open files can be adjusted by changing one config file entry (see comment 4 of http://bugs.gentoo.org/show_bug.cgi?id=296663) or for squid there is an entry in /etc/conf.d/squid, it is not possible to increase this limit for slapd, which causes many trouble if this vital service fails because this limit prevents it from opening further files.

Trying to solve it via changing the limit in /etc/security/limits.conf fails, because the service is started via start-stop-daemon (you can't use -c ldap for it, because it uses privileged ports) and also seems to not read the limit-file by itself.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-02-12 21:53:19 UTC
See the rc_ulimit parameters in /etc/rc.conf and add them to your /etc/conf.d/slapd as needed.