#3428 getent failed to fetch netgroup information after changing default_domain_suffix to ADdomin in /etc/sssd/sssd.conf
Closed: Fixed 6 years ago Opened 6 years ago by lslebodn.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1457927

Description of problem:
getent failed to fetch netgroup information after changing
default_domain_suffix to ADdomin in /etc/sssd/sssd.conf

Version-Release number of selected component (if applicable):
sssd-1.15.2-37.el7.x86_64
ipa-server-4.5.0-13.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
Description of problem:
getent failed to fetch netgroup information after changing
default_domain_suffix to ADdomin in /etc/sssd/sssd.conf


:: [  BEGIN   ] :: Running 'kdestroy -A'
:: [   PASS   ] :: Command 'kdestroy -A' (Expected 0, got 0)
:: [  BEGIN   ] :: Running 'echo Secret123|kinit admin'
Password for admin@SUDOEXSM37.TEST:
:: [   PASS   ] :: Command 'echo Secret123|kinit admin' (Expected 0, got 0)
:: [  BEGIN   ] :: Running 'ipa netgroup-add --desc test_netgroup ng_test'
------------------------
Added netgroup "ng_test"
------------------------
  Netgroup name: ng_test
  Description: test_netgroup
  NIS domain name: sudoexsm37.test
  IPA unique ID: defa9578-45da-11e7-b3eb-5254007eedd6
:: [   PASS   ] :: Command 'ipa netgroup-add --desc test_netgroup ng_test'
(Expected 0, got 0)

:: [  BEGIN   ] :: Running 'awk '/\[sssd\]/,/^$/' /etc/sssd/sssd.conf'
[sssd]
default_domain_suffix = pne.qe
debug_level = 10
services = nss, pam, ssh, sudo

:: [   PASS   ] :: Command 'awk '/\[sssd\]/,/^$/' /etc/sssd/sssd.conf'
(Expected 0, got 0)

:: [  BEGIN   ] :: Running 'service sssd stop; rm -rf /var/lib/sss/{db,mc}/*;
service sssd start'
Redirecting to /bin/systemctl stop sssd.service
Redirecting to /bin/systemctl start sssd.service
:: [   PASS   ] :: Command 'service sssd stop; rm -rf /var/lib/sss/{db,mc}/*;
service sssd start' (Expected 0, got 0)

:: [  BEGIN   ] :: Running 'getent netgroup ng_test >
ipa_trust_func_bug_1127757.rlkQ8B 2>&1'
:: [   FAIL   ] :: Command 'getent netgroup ng_test >
ipa_trust_func_bug_1127757.rlkQ8B 2>&1' (Expected 0, got 2)
:: [   FAIL   ] :: File 'ipa_trust_func_bug_1127757.rlkQ8B' should contain
'ipauser1'

:: [   FAIL   ] :: File '/var/log/sssd/sssd_nss.log' should contain
'sss_dp_issue_request.*ng_test@sudoexsm37.test'



Expected results:
netgroups shouldn't be affected by default domain suffix

Additional info:

getting the expected result by adding IPAdomain with netgroup (getent netgroup
<netgroupname@IPADOMAIN>)
# getent netgroup ng_test@sudoexsm37.test
ng_test@sudoexsm37.test (-,ipauser1,sudoexsm37.test)

Old bug https://bugzilla.redhat.com/show_bug.cgi?id=1312275 with the same kind
of issue was verified in Rhle 6.5 and sssd-1.11.6-20.el6

Metadata Update from @lslebodn:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1457927

6 years ago

Metadata Update from @lslebodn:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1457927

6 years ago

Metadata Update from @lslebodn:
- Issue assigned to lslebodn

6 years ago

Metadata Update from @lslebodn:
- Custom field version adjusted to 1.15.0
- Issue set to the milestone: None

6 years ago

Metadata Update from @jhrozek:
- Issue set to the milestone: SSSD 1.15.3

6 years ago

Metadata Update from @jhrozek:
- Issue close_status updated to: Fixed
- Issue priority set to: blocker
- Issue status updated to: Closed (was: Open)

6 years ago

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/4455

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Login to comment on this ticket.

Metadata