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 2119841

Summary: Regression: cn=views,cn=compat broken with slapi-nis-0.56.5-3.el7_9.x86_64
Product: Red Hat Enterprise Linux 9 Reporter: Alexander Bokovoy <abokovoy>
Component: slapi-nisAssignee: Alexander Bokovoy <abokovoy>
Status: CLOSED ERRATA QA Contact: ipa-qe <ipa-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.1CC: amore, ssidhaye
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: slapi-nis-0.60.0-2.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-15 10:42:58 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:

Comment 1 Alexander Bokovoy 2022-08-19 15:39:21 UTC
Have a fix on top of https://pagure.io/slapi-nis/pull-request/47 which was merged upstream

Comment 2 anuja 2022-08-23 10:04:20 UTC
Verified Tested using :

Before fix :
[root@master ~]# ldapsearch -LLLQ -b 'cn=test,cn=views,cn=compat,dc=ipa,dc=test' 'uid=slapidover'
No such object (32)
Matched DN: cn=compat,dc=ipa,dc=test
[root@master ~]# ldapsearch -LLLQ -b 'cn=test,cn=views,cn=compat,dc=ipa,dc=test' 'uid=slapidover' -s base
No such object (32)
Matched DN: cn=compat,dc=ipa,dc=test
[root@master ~]# 
[root@master ~]# rpm -qa ipa-server slapi-nis
slapi-nis-0.56.7-4.el9.x86_64
ipa-server-4.10.0-5.el9.x86_64
[root@master ~]# 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

After fix :

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

[root@master ~]# ldapsearch -LLLQ -b 'cn=testfixed,cn=views,cn=compat,dc=ipa,dc=test' 'uid=userfixed' -s base
[root@master ~]# echo $?
0
[root@master ~]# 
[root@master ~]# rpm -qa slapi-nis ipa-server
slapi-nis-0.60.0-2.el9.x86_64
ipa-server-4.10.0-5.el9.x86_64
[root@master ~]#

Comment 5 anuja 2022-08-24 08:44:58 UTC
Verified using nightly :
[root@master ~]# ipa idview-add test91
----------------------
Added ID View "test91"
----------------------
  ID View Name: test91
[root@master ~]# ipa user-add user91 --first user91 --last user91
-------------------
Added user "user91"
-------------------
  User login: user91
  First name: user91
  Last name: user91
  Full name: user91 user91
  Display name: user91 user91
  Initials: uu
  Home directory: /home/user91
  GECOS: user91 user91
  Login shell: /bin/sh
  Principal name: user91
  Principal alias: user91
  Email address: user91
  UID: 766600003
  GID: 766600003
  Password: False
  Member of groups: ipausers
  Kerberos keys available: False
[root@master ~]# ldapsearch -LLLQ -b 'cn=test91,cn=views,cn=compat,dc=ipa,dc=test' 'uid=user91'
dn: uid=user91,cn=users,cn=test91,cn=views,cn=compat,dc=ipa,dc=test
objectClass: posixAccount
objectClass: top
gecos: user91 user91
cn: user91 user91
uidNumber: 766600003
gidNumber: 766600003
loginShell: /bin/sh
homeDirectory: /home/user91
uid: user91

[root@master ~]# rpm -qa slapi-nis
slapi-nis-0.60.0-2.el9.x86_64
[root@master ~]#

Comment 7 errata-xmlrpc 2022-11-15 10:42:58 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 (slapi-nis 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:8247