Bug 825028
| Summary: | Service lookups by port number doesn't work on s390x/ppc64 arches | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Kaushik Banerjee <kbanerje> |
| Component: | sssd | Assignee: | Stephen Gallagher <sgallagh> |
| Status: | CLOSED ERRATA | QA Contact: | IDM QE LIST <seceng-idm-qe-list> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.3 | CC: | dpal, grajaiya, jgalipea, prc |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | sssd-1.8.0-32.el6 | Doc Type: | Bug Fix |
| Doc Text: |
No documentation required
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-06-20 11:45:06 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: | |||
| Bug Blocks: | 826592 | ||
|
Description
Kaushik Banerjee
2012-05-24 20:57:35 UTC
Upstream ticket: https://fedorahosted.org/sssd/ticket/1348 Patch committed upstream. # named, Services, example.com dn: cn=named,ou=Services,dc=example,dc=com objectClass: ipService objectClass: top cn: Named_Alias cn: bind cn: named ipServicePort: 53 ipServiceProtocol: udp # ssh, Services, example.com dn: cn=ssh,ou=Services,dc=example,dc=com objectClass: ipService cn: ssh_alias1 cn: SSH_alias2 cn: ssh ipServicePort: 22 ipServiceProtocol: tcp # Svc5, Services, example.com dn: cn=Svc5,ou=Services,dc=example,dc=com objectClass: ipService cn: svc5_alias1 cn: SVC5_Alias2 cn: Svc5 ipServicePort: 12345 ipServiceProtocol: SCtp ipServiceProtocol: Dummy_proto5 [root@ibm-js22-04 ~]# getent -s sss services ssh ssh 22/tcp ssh_alias1 SSH_alias2 [root@ibm-js22-04 ~]# getent -s sss services 22/tcp ssh 22/tcp ssh_alias1 SSH_alias2 [root@ibm-js22-04 ~]# getent -s sss services 22 ssh 22/tcp ssh_alias1 SSH_alias2 [root@ibm-js22-04 ~]# [root@ibm-js22-04 ~]# ldbsearch -H /var/lib/sss/db/cache_LDAP.ldb name=ssh asq: Unable to register control with rootdse! # record 1 dn: name=ssh,cn=services,cn=LDAP,cn=sysdb createTimestamp: 1338301618 name: ssh nameAlias: ssh_alias1 nameAlias: SSH_alias2 objectClass: service servicePort: 22 serviceProtocol: tcp lastUpdate: 1338301618 dataExpireTimestamp: 1338307018 distinguishedName: name=ssh,cn=services,cn=LDAP,cn=sysdb # returned 1 records # 1 entries # 0 referrals [root@ibm-js22-04 ~]# [root@ibm-js22-04 ~]# getent -s sss services named named 53/udp Named_Alias bind [root@ibm-js22-04 ~]# getent -s sss services 53 named 53/udp Named_Alias bind [root@ibm-js22-04 ~]# getent -s sss services 53/udp named 53/udp Named_Alias bind [root@ibm-js22-04 ~]# getent -s sss services 22 ssh 22/tcp ssh_alias1 SSH_alias2 [root@ibm-js22-04 ~]# getent -s sss services 22/tcp ssh 22/tcp ssh_alias1 SSH_alias2 [root@ibm-js22-04 ~]# [root@ibm-js22-04 ~]# getent -s sss services Svc5 Svc5 12345/SCtp svc5_alias1 SVC5_Alias2 [root@ibm-js22-04 ~]# getent -s sss services 12345/SCtp [root@ibm-js22-04 ~]# getent -s sss services 12345 [root@ibm-js22-04 ~]# getent -s sss services 22/tcp [root@ibm-js22-04 ~]# /var/log/sssd/sssd_nss.log: (Tue May 29 10:43:11 2012) [sssd[nss]] [sss_cmd_get_version] (0x0200): Received client version [1]. (Tue May 29 10:43:11 2012) [sssd[nss]] [sss_cmd_get_version] (0x0200): Offered version [1]. (Tue May 29 10:43:11 2012) [sssd[nss]] [nss_cmd_getservbyport] (0x0040): Could not parse request (Tue May 29 10:43:11 2012) [sssd[nss]] [client_recv] (0x0200): Client disconnected! Tested in version: sssd-1.8.0-31.el6.ppc64 The original fix made a mistake with processing the length of the packet, causing the 'protocol' field to be truncated. sssd-1.8.0-32.el6 corrects this mistake. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# [root@ibm-z10-11 ~]# arch s390x [root@ibm-z10-11 ~]# [root@ibm-z10-11 ~]# getent -s sss services Svc5 Svc5 12345/SCtp svc5_alias1 SVC5_Alias2 [root@ibm-z10-11 ~]# getent -s sss services 12345 Svc5 12345/SCtp svc5_alias1 SVC5_Alias2 [root@ibm-z10-11 ~]# getent -s sss services 12345/SCtp Svc5 12345/SCtp svc5_alias1 SVC5_Alias2 [root@ibm-z10-11 ~]# [root@ibm-z10-11 ~]# getent -s sss services 22 ssh 22/tcp ssh_alias1 SSH_alias2 [root@ibm-z10-11 ~]# [root@ibm-z10-11 ~]# getent -s sss services 53/udp named 53/udp Named_Alias bind [root@ibm-z10-11 ~]# #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# [root@ibm-js22-04 ~]# arch ppc64 [root@ibm-js22-04 ~]# [root@ibm-js22-04 ~]# getent -s sss services Svc5 Svc5 12345/SCtp svc5_alias1 SVC5_Alias2 [root@ibm-js22-04 ~]# getent -s sss services 12345 Svc5 12345/SCtp svc5_alias1 SVC5_Alias2 [root@ibm-js22-04 ~]# getent -s sss services 12345/SCtp Svc5 12345/SCtp svc5_alias1 SVC5_Alias2 [root@ibm-js22-04 ~]# #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# Verified in version: sssd-1.8.0-32.el6.ppc64 sssd-1.8.0-32.el6.s390x
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
No documentation required
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. http://rhn.redhat.com/errata/RHBA-2012-0747.html |