When ipHostNumber contains an ipv6 address, getent returns a wrong address on RHEL5

Solution Unverified - Updated -

Issue

  • When ipHostNumber contains an ipv6 address, getent returns a wrong address on RHEL5

Sample log:

# ldapsearch -LLL -x -D "cn=Manager,dc=example,dc=com" -w password -h ldapsrv1 -b "dc=example,dc=com" cn=rhel511
dn: cn=rhel511,ou=hosts,dc=example,dc=com
cn: rhel511
ipHostNumber: 3ffe:ffff:ffff::9
objectClass: ipHost
objectClass: top
objectClass: device


# getent ahostsv6 rhel511
ffff:ffff:3500:96c:6461:7031:2e6e:6174 STREAM rhel511
ffff:ffff:3500:96c:6461:7031:2e6e:6174 DGRAM  
ffff:ffff:3500:96c:6461:7031:2e6e:6174 RAW

Environment

  • Red Hat Enterprise Linux 5
  • nss_ldap

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content