Bug 138631 - /sbin/service breaks openldap/tls configuration for at least smbd
Summary: /sbin/service breaks openldap/tls configuration for at least smbd
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-11-10 12:43 UTC by Kristian Rietveld
Modified: 2014-03-17 02:50 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-11-10 17:38:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
proposed fix. (1.36 KB, patch)
2004-11-10 12:45 UTC, Kristian Rietveld
no flags Details | Diff

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.


Note You need to log in before you can comment on or make changes to this bug.