Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145203 - net-nds/openldap - no way to set socket permissions
Summary: net-nds/openldap - no way to set socket permissions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-26 13:54 UTC by Torben Janssen
Modified: 2006-12-23 15:02 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Torben Janssen 2006-08-26 13:54:19 UTC
Hi,
there is no why to set the permission of the socket created by OpenLDAP. In /etc/conf/slapd is a pre-configured socket-path but no way to configure the permissions. Right now I am using a chmod in /etc/init.d/slapd but thats not very elegant. I read about setting the permissions on the commandline of slapd but the way, describes in slapd.conf does not work for me.
Comment 1 Benjamin Smee (strerror) (RETIRED) gentoo-dev 2006-09-18 02:53:42 UTC
That's because it requires being enabled at compile time, which we are not currently doing. I guess we could look at adding a USE flag for it, though I'm not entirely convinced that it would be worthwhile. I'll have a think about it.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-09-30 16:53:45 UTC
the 'listener permissions' described in slapd(8c) are special, and don't affect the file permissions on the socket.

I'd say that the socket permissions for /var/run/openldap/slapd.sock SHOULD default to 777, since slapd enforces permissions after the connection process anyway.
Comment 3 Markus Ullmann (RETIRED) gentoo-dev 2006-12-23 15:02:39 UTC
Fixed by upstream in latest 2.3 series