Bug 138631

Summary: /sbin/service breaks openldap/tls configuration for at least smbd
Product: [Fedora] Fedora Reporter: Kristian Rietveld <kris>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED WONTFIX QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 3CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-11-10 17:38:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
proposed fix. none

Description Kristian Rietveld 2004-11-10 12:43:21 UTC
When configuring openldap clients to use TLS with certificates, the
paths to the cert and the key have to be saved in $HOME/.ldaprc. The
samba daemon can be configured to use ldap with TLS, and thus needs
access to $HOME/.ldaprc when setting up the connection. If you start
up smb using /sbin/service $HOME does not get set in the newly created
environment. This avoids smbd from getting the paths to its required 
certs/keys and thus from functioning properly.

Proposal is to also export $HOME in the newly created environment in
/sbin/service. [I am not sure if this introduces additional security
problems.]

The attached patch fixes this problem, this has been verified locally.

Comment 1 Kristian Rietveld 2004-11-10 12:45:08 UTC
Created attachment 106407 [details]
proposed fix.

Comment 2 Bill Nottingham 2004-11-10 17:38:34 UTC
It's really better for initscripts in general to not inherit the
environment; that's why this change was made.

This is probably something better handled specifcally in initscripts
that need a $HOME.