When ipHostNumber contains an ipv6 address, getent returns a wrong address on RHEL5
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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
