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 1281750 - duplicate ldap entries returned on getent when making usage of ID views in IPA
Summary: duplicate ldap entries returned on getent when making usage of ID views in IPA
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: slapi-nis
Version: 7.2
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: rc
: ---
Assignee: Alexander Bokovoy
QA Contact: Namita Soman
URL:
Whiteboard:
Depends On: 1277576
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-13 11:32 UTC by Jan Kurik
Modified: 2019-09-12 09:17 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1277576
Environment:
Last Closed: 2015-12-08 10:36:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2571 0 normal SHIPPED_LIVE slapi-nis bug fix update 2015-12-08 15:35:06 UTC

Description Jan Kurik 2015-11-13 11:32:59 UTC
This bug has been copied from bug #1277576 and has been proposed
to be backported to 7.2 z-stream (EUS).

Comment 4 Sudhir Menon 2015-11-23 10:49:31 UTC
Fix is seen.Verified using slapi-nis-0.54-6.el7_2.x86_64.
Duplicate ldap entries are not listed.

1. With  slapi-nis-0.54-5.el7.x86_64 which doesn't have the fix.

[root@ipaserver1 ~]# ipa user-add --first=Joe --last=Doe --shell=/bin/bash jdoe
    -----------------
    Added user "jdoe"
    -----------------
      User login: jdoe
      First name: Joe
      Last name: Doe
      Full name: Joe Doe
      Display name: Joe Doe
      Initials: JD
      Home directory: /home/jdoe
      GECOS: Joe Doe
      Login shell: /bin/bash
      Kerberos principal: jdoe
      Email address: jdoe
      UID: 495400005
      GID: 495400005
      Password: False
      Member of groups: ipausers
      Kerberos keys available: False

[root@ipaserver1 ~]# ipa idview-add legacy-servers --desc "Our legacy servers"
    ------------------------------
    Added ID View "legacy-servers"
    ------------------------------
      ID View Name: legacy-servers
      Description: Our legacy servers

[root@ipaserver1 ~]# ipa idoverrideuser-add --uid=1001 --shell=/bin/ksh 
legacy-servers  jdoe 
----------------------------                                                    Added User ID override "jdoe"                                                                
-----------------------------
Anchor to override: jdoe
UID: 1001
Login shell: /bin/ksh
     
[root@ipaclient01 ~]# authconfig --updateall --enableldap --enableldapauth --ldapserver=ldap://ipaserver1.labs02.test --ldapbasedn=cn=users,cn=legacy-servers,cn=views,cn=compat,dc=labs02,dc=test
     
[root@ipaclient01 ~]# getent passwd jdoe
jdoe:*:495400005:495400005:Joe Doe:/home/jdoe:/bin/bash   <====
     
[root@ipaclient01 ~]# ldapsearch -LLL -x -b cn=users,cn=legacy-servers,cn=views,cn=compat,dc=labs02,dc=test -D "cn=Directory Manager" -W uid=jdoe

    Enter LDAP Password:
    dn: uid=jdoe,cn=users,cn=legacy-servers,cn=views,cn=compat,dc=labs02,dc=test
    cn: Joe Doe
    objectClass: posixAccount
    objectClass: top
    gidNumber: 495400005
    gecos: Joe Doe
    uidNumber: 495400005
    uidNumber: 1001
    loginShell: /bin/bash   <====
    loginShell: /bin/ksh    <====
    homeDirectory: /home/jdoe
    uid: jdoe
 

2.  After upgrading slapi-nis and restarting directory service instance the fix is seen.

[root@ipaclient01 yum.repos.d]# rpm -qa | grep slapi-nis
slapi-nis-0.54-6.el7_2.x86_64
     
[root@ipaclient01 yum.repos.d]# getent passwd jdoe
jdoe:*:1001:495400005:Joe Doe:/home/jdoe:/bin/ksh  <====

[root@ipaclient01 yum.repos.d]# ldapsearch -LLL -x -b cn=users,cn=legacy-servers,cn=views,cn=compat,dc=labs02,dc=test -D "cn=Directory Manager" -W uid=jdoe
Enter LDAP Password:
    dn: uid=jdoe,cn=users,cn=legacy-servers,cn=views,cn=compat,dc=labs02,dc=test
    cn: Joe Doe
    objectClass: posixAccount
    objectClass: top
    gidNumber: 495400005
    gecos: Joe Doe
    homeDirectory: /home/jdoe
    uid: jdoe
    loginShell: /bin/ksh   <====
    uidNumber: 1001

Comment 6 errata-xmlrpc 2015-12-08 10:36:42 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.

https://rhn.redhat.com/errata/RHBA-2015-2571.html


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