Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1984010

Summary: Regression: cn=views,cn=compat broken with slapi-nis-0.56.5-3.el7_9.x86_64
Product: Red Hat Enterprise Linux 8 Reporter: Petr Čech <pcech>
Component: slapi-nisAssignee: Alexander Bokovoy <abokovoy>
Status: CLOSED ERRATA QA Contact: ipa-qe <ipa-qe>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 8.6CC: abokovoy, aheverle, amore, arajendr, frenaud, ipa-qe, jreznik, jwooten, ksiddiqu, pcech, rjeffman, sumenon, tbordaz, therman, tscherf
Target Milestone: betaKeywords: Triaged, ZStream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: slapi-nis-0.60.0-1.module+el8.7.0+16405+581a7c1e Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1978748
: 2121324 (view as bug list) Environment:
Last Closed: 2022-11-08 09:35:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1978748    
Bug Blocks: 2121324    

Comment 1 Theodoros Apazoglou 2022-02-01 11:01:45 UTC
Moving this task to 8.7 due to the high workload and no time left for dev work on 8.6.

Comment 8 Alexander Bokovoy 2022-08-18 17:25:15 UTC
Upstream PR https://pagure.io/slapi-nis/pull-request/47 should address this issue. We are currently reviewing the code changes.

Comment 9 Alexander Bokovoy 2022-08-19 15:34:55 UTC
*** Bug 2015907 has been marked as a duplicate of this bug. ***

Comment 10 Alexander Bokovoy 2022-08-19 15:44:05 UTC
*** Bug 1884688 has been marked as a duplicate of this bug. ***

Comment 11 anuja 2022-08-23 14:07:55 UTC
Verified Tested Using:

[root@master ~]# ipa idview-add test87
----------------------
Added ID View "test87"
----------------------
  ID View Name: test87
[root@master ~]# ipa user-add user86 --first test87 --last user87
-------------------
Added user "user86"
-------------------
  User login: user86
  First name: test87
  Last name: user87
  Full name: test87 user87
  Display name: test87 user87
  Initials: tu
  Home directory: /home/user86
  GECOS: test87 user87
  Login shell: /bin/sh
  Principal name: user86
  Principal alias: user86
  Email address: user86
  UID: 1619600003
  GID: 1619600003
  Password: False
  Member of groups: ipausers
  Kerberos keys available: False
[root@master ~]# ldapsearch -LLLQ -b 'cn=test87,cn=views,cn=compat,dc=ipa,dc=test' 'uid=user86'
dn: uid=user86,cn=users,cn=test87,cn=views,cn=compat,dc=ipa,dc=test
objectClass: posixAccount
objectClass: top
gecos: test87 user87
cn: test87 user87
uidNumber: 1619600003
gidNumber: 1619600003
loginShell: /bin/sh
homeDirectory: /home/user86
uid: user86

[root@master ~]# ldapmodify -D "cn=directory manager" -w Secret123 -a -f /tmp/foo1
[root@master ~]# rpm -qa ipa-server slapi-nis
slapi-nis-0.60.0-1.module+el8.7.0+16405+581a7c1e.x86_64
ipa-server-4.9.10-6.module+el8.7.0+16405+581a7c1e.x86_64
[root@master ~]#

Comment 15 anuja 2022-08-29 05:15:43 UTC
Verified using nightly build:
[root@master ~]# echo Secret123 | kinit admin
Password for admin: 
[root@master ~]# ipa idview-add test87
----------------------
Added ID View "test87"
----------------------
  ID View Name: test87
[root@master ~]# ipa user-add user87 --first test87 --last user87
-------------------
Added user "user87"
-------------------
  User login: user87
  First name: test87
  Last name: user87
  Full name: test87 user87
  Display name: test87 user87
  Initials: tu
  Home directory: /home/user87
  GECOS: test87 user87
  Login shell: /bin/sh
  Principal name: user87
  Principal alias: user87
  Email address: user87
  UID: 1961200003
  GID: 1961200003
  Password: False
  Member of groups: ipausers
  Kerberos keys available: False
[root@master ~]# ldapsearch -LLLQ -b 'cn=test87,cn=views,cn=compat,dc=ipa,dc=test' 'uid=user87'
dn: uid=user87,cn=users,cn=test87,cn=views,cn=compat,dc=ipa,dc=test
objectClass: posixAccount
objectClass: top
gecos: test87 user87
cn: test87 user87
uidNumber: 1961200003
gidNumber: 1961200003
loginShell: /bin/sh
homeDirectory: /home/user87
uid: user87

[root@master ~]# rpm -qa ipa-server slapi-nis
slapi-nis-0.60.0-1.module+el8.7.0+16405+581a7c1e.x86_64
ipa-server-4.9.10-6.module+el8.7.0+16405+581a7c1e.x86_64
[root@master ~]#

Comment 17 errata-xmlrpc 2022-11-08 09:35:45 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 (idm:client and idm:DL1 bug fix and enhancement update), and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHBA-2022:7540