| Summary: | nss_nis client generates refused connect to procedure ypproc_match errors on NIS server | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Jeff Bastian <jbastian> | ||||||
| Component: | glibc | Assignee: | Jeff Law <law> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | qe-baseos-tools-bugs | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | 5.6 | CC: | cww, fweimer, hhorak, mfranc, patrickm, rbinkhor | ||||||
| Target Milestone: | rc | Keywords: | Patch | ||||||
| Target Release: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | glibc-2.5-67 | Doc Type: | Bug Fix | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | |||||||||
| : | 731391 (view as bug list) | Environment: | |||||||
| Last Closed: | 2012-02-21 06:32:59 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Bug Depends On: | |||||||||
| Bug Blocks: | 668957, 679848, 719046, 731391 | ||||||||
| Attachments: |
|
||||||||
|
Description
Jeff Bastian
2011-02-17 15:04:54 UTC
There are two identical chunks of the patch that are not valid anymore: - buffer[len] = '\0'; + if (__builtin_expect (adjunct_used, false)) + /* This is an ugly trick. The format of passwd.adjunct.byname almost + matches the shadow.byname format except that the last two fields + are missing. Synthesize them by marking them empty. */ + strcpy (&buffer[len], "::"); + else + buffer[len] = '\0'; Solaris now uses 9 fields in shadow and passwd.adjunct just like Linux. http://download.oracle.com/docs/cd/E18752_01/html/816-5174/shadow-4.html Created attachment 502123 [details]
patch for ADJUNCT_AS_SHADOW modified
Here is an updated patch without the "dirty trick" to add two colons to the passwd.adjunct entries.
It works for me with 8 colons in the table:
[root@localhost ~]# ypmatch ralph passwd.adjunct.byname
ralph:REDACTED:::::::
[root@localhost ~]# ypmatch ralph passwd.adjunct.byname | awk -F: '{print NF}'
9
[root@localhost ~]# ssh ralph@localhost
ralph@localhost's password:
Last login: Tue May 31 16:27:01 2011 from localhost.localdomain
[ralph@localhost ~]$
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-0260.html |