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 766141 - [RFE] SSSD should support FreeIPA's internal netgroup representation
Summary: [RFE] SSSD should support FreeIPA's internal netgroup representation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: sssd
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Stephen Gallagher
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: 736854
TreeView+ depends on / blocked
 
Reported: 2011-12-10 15:28 UTC by Dmitri Pal
Modified: 2020-05-02 16:18 UTC (History)
4 users (show)

Fixed In Version: sssd-1.8.0-2.el6.beta2
Doc Type: Enhancement
Doc Text:
No technical note required
Clone Of:
Environment:
Last Closed: 2012-06-20 11:49:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 1835 0 None closed [RFE] SSSD should support FreeIPA's internal netgroup representation 2020-05-02 16:18:32 UTC
Red Hat Product Errata RHBA-2012:0747 0 normal SHIPPED_LIVE sssd bug fix and enhancement update 2012-06-19 19:31:43 UTC

Description Dmitri Pal 2011-12-10 15:28:20 UTC
SSSD IPA data provider should use IPA schema rather than rely on the netgroups from the compat tree.

https://fedorahosted.org/sssd/ticket/793

Comment 1 Stephen Gallagher 2012-01-30 20:56:21 UTC
Upstream ticket:
https://fedorahosted.org/sssd/ticket/793

Comment 3 Scott Poore 2012-03-16 22:36:34 UTC
Verified.

Version :: ipa-server-2.2.0-4.el6.x86_64

Automated Test Results ::

There was a bug in the automated testing.  Needed a slight delay between when sssd restarted and when getent was run.  Fixed in automation testing code.  This is a manual run of fixed automation code:

[root@hp-xw6600-01 ipa-netgroup-cli]# netgroup_bz_766141

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: netgroup_bz_766141: SSSD should support FreeIPA's internal netgroup representation
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

-----------------------------------
Added netgroup "netgroup_bz_766141"
-----------------------------------
  Netgroup name: netgroup_bz_766141
  Description: netgroup_bz_766141
  NIS domain name: testrelm.com
  IPA unique ID: 41ca900e-6fb7-11e1-840a-0019bbea4c2b
:: [   PASS   ] :: Running 'ipa netgroup-add netgroup_bz_766141 --desc=netgroup_bz_766141'
  Netgroup name: netgroup_bz_766141
  Description: netgroup_bz_766141
  NIS domain name: testrelm.com
  Member User: admin
-------------------------
Number of members added 1
-------------------------
:: [   PASS   ] :: Running 'ipa netgroup-add-member netgroup_bz_766141 --users=admin'
:: [   PASS   ] :: Running 'cp -f /etc/sssd/sssd.conf /etc/sssd/sssd.conf.netgroup_bz_766141.backup'
:: [18:27:49] ::  Running: sed -i 's/\(\[domain.*\]\)$/\1
debug_level = 6/' /etc/sssd/sssd.conf
[domain/testrelm.com]
debug_level = 6

cache_credentials = True
krb5_store_password_if_offline = True
ipa_domain = testrelm.com
id_provider = ipa
auth_provider = ipa
access_provider = ipa
ipa_hostname = hp-xw6600-01.testrelm.com
chpass_provider = ipa
ipa_server = hp-xw6600-01.testrelm.com
ldap_tls_cacert = /etc/ipa/ca.crt
[sssd]
services = nss, pam, ssh
config_file_version = 2

domains = testrelm.com
[nss]

[pam]

[sudo]

[autofs]

[ssh]

:: [   PASS   ] :: Running 'cat /etc/sssd/sssd.conf'
Stopping sssd: [  OK  ]
[  OK  ] sssd: [  OK  ]
:: [   PASS   ] :: Running 'service sssd restart'
:: [   PASS   ] :: Running 'sleep 5'
netgroup_bz_766141    (-, admin, testrelm.com)
:: [   PASS   ] :: Running 'getent -s sss netgroup netgroup_bz_766141'
:: [   PASS   ] :: BZ 766141 not found
:: [   PASS   ] :: Running 'mv -f /etc/sssd/sssd.conf.netgroup_bz_766141.backup /etc/sssd/sssd.conf'
:: [   PASS   ] :: Running 'chmod 0600 /etc/sssd/sssd.conf'
Stopping sssd: [  OK  ]
[  OK  ] sssd: [  OK  ]
:: [   PASS   ] :: Running 'service sssd restart'
-------------------------------------
Deleted netgroup "netgroup_bz_766141"
-------------------------------------
:: [   PASS   ] :: Running 'ipa netgroup-del netgroup_bz_766141'


Manual Test Results ::

[root@hp-xw6600-01 ipa-netgroup-cli]# ipa netgroup-add bz766141 --desc=test
-------------------------
Added netgroup "bz766141"
-------------------------
  Netgroup name: bz766141
  Description: test
  NIS domain name: testrelm.com
  IPA unique ID: 02a1ab64-6fb8-11e1-ac14-0019bbea4c2b
[root@hp-xw6600-01 ipa-netgroup-cli]# ipa netgroup-add-member bz766141 --users=admin
  Netgroup name: bz766141
  Description: test
  NIS domain name: testrelm.com
  Member User: admin
-------------------------
Number of members added 1
-------------------------

[root@hp-xw6600-01 ipa-netgroup-cli]# cp -f /etc/sssd/sssd.conf /etc/sssd/sssd.conf.backup
[root@hp-xw6600-01 ipa-netgroup-cli]# sed -i 's/\(\[domain.*\]\)$/\1\ndebug_level = 6/' /etc/sssd/sssd.conf
[root@hp-xw6600-01 ipa-netgroup-cli]# service sssd restart
Stopping sssd: [  OK  ]
[  OK  ] sssd: [  OK  ]

[root@hp-xw6600-01 ipa-netgroup-cli]# getent -s sss netgroup bz766141
bz766141              (-, admin, testrelm.com)

[root@hp-xw6600-01 ipa-netgroup-cli]# grep -i "calling ldap_search_ext with.*NisNetgroup.*compat" /var/log/sssd/sssd_testrelm.com.log 

[root@hp-xw6600-01 ipa-netgroup-cli]# grep -i cn=ng,cn=compat /var/log/sssd/sssd_testrelm.com.log

Comment 4 Scott Poore 2012-03-16 22:38:39 UTC
Note on verification:

This included the following version of SSSD:

sssd-1.8.0-15.el6.x86_64

Comment 5 Stephen Gallagher 2012-04-10 16:50:53 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No technical note required

Comment 7 errata-xmlrpc 2012-06-20 11:49:27 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-2012-0747.html


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