RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 971435 - Enhance sssd init script so that it would source a configuration
Summary: Enhance sssd init script so that it would source a configuration
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: sssd
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jakub Hrozek
QA Contact: Kaushik Banerjee
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-06 13:49 UTC by Dmitri Pal
Modified: 2020-05-02 17:22 UTC (History)
7 users (show)

Fixed In Version: sssd-1.9.2-104.el6
Doc Type: Bug Fix
Doc Text:
Do not document
Clone Of:
Environment:
Last Closed: 2013-11-21 22:19:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 3001 0 None None None 2020-05-02 17:22:35 UTC
Red Hat Product Errata RHBA-2013:1680 0 normal SHIPPED_LIVE sssd bug fix and enhancement update 2013-11-20 21:52:37 UTC

Description Dmitri Pal 2013-06-06 13:49:17 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/sssd/ticket/1959

Ticket was cloned from Red Hat Bugzilla (product ''RHEL RFE''): [https://bugzilla.redhat.com/show_bug.cgi?id=924356 Bug 924356]


Enhance sssd init script so that it would source a configuration file as the
majority of the other init scripts (i.e. /etc/sysconfig/sssd)
This will allow the deployments to export the NSS_HASH_ALG_SUPPORT variable
without modifying the sssd init script.
This can be accomplished by adding the configuration script (i.e. /etc/sysconfig/sssd) and checking if it can change the exported environments of sssd processes.

Comment 1 Jakub Hrozek 2013-06-06 14:17:07 UTC
To reproduce:

1. define an environment variable in /etc/sysconfig/sssd
echo "PIZZA=YUMMY" > /etc/sysconfig/sssd
2. restart the SSSD to make it source the file
3. check the environment of the sssd process and make sure the variable is reflected there
$ grep PIZZA /proc/$(pidof sssd)/environ

Comment 5 Jakub Hrozek 2013-06-25 13:40:24 UTC
Pushed upstream.

Comment 8 Jakub Hrozek 2013-10-03 08:35:59 UTC
(In reply to Jakub Hrozek from comment #1)
> To reproduce:
> 
> 1. define an environment variable in /etc/sysconfig/sssd
> echo "PIZZA=YUMMY" > /etc/sysconfig/sssd
> 2. restart the SSSD to make it source the file
> 3. check the environment of the sssd process and make sure the variable is
> reflected there
> $ grep PIZZA /proc/$(pidof sssd)/environ

Sorry, for RHEL-6 you need to export the variable. The following worked for me fine:
# cat /etc/sysconfig/sssd 
export PIZZA=YUMMY
export foo=bar
# service sssd restart
Stopping sssd: [  OK  ]
[  OK  ] sssd: [  OK  ]
# cat /proc/$(pidof sssd)/environ
TERM=xterm-256colorPIZZA=YUMMYPATH=/sbin:/usr/sbin:/bin:/usr/binPWD=
/LANG=en_US.UTF-8foo=barSHLVL=2_=/usr/sbin/sssd

Comment 9 Amith 2013-10-03 12:06:49 UTC
Verified the bz on SSSD version: sssd-1.9.2-125.el6.x86_64

Steps followed during verification:

1. As mentioned in comment #8, export variables in /etc/sysconfig/sssd file.

[root@rhel-65 ~]# cat /etc/sysconfig/sssd 
export PIZZA=YUMMY
export foo=bar

2. Restart sssd service.

[root@rhel-65 ~]# service sssd restart
Stopping sssd:                                             [  OK  ]
Starting sssd:                                             [  OK  ]
[root@rhel-65 ~]# 
[root@rhel-65 ~]# service sssd status
sssd (pid  2629) is running...

3. Verify the existence of variables in sssd environment.

[root@rhel-65 ~]# cat /proc/2629/environ 
TERM=xtermPIZZA=YUMMYPATH=/sbin:/usr/sbin:/bin:/usr/binPWD=/LANG=en_US.UTF-8foo=barSHLVL=2_=/usr/sbin/sssd

Comment 10 errata-xmlrpc 2013-11-21 22:19:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1680.html


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