Hide Forgot
+++ This bug was initially created as a clone of Bug #1297955 +++ Description of problem: When using passwd.adjunct map, yppasswd command fails with "crypt() failed" error, since it tries to use the "##user" string as salt. There's a patch, yp-tools-2.12-adjunct.patch, that attempts to fix this, but it gets it wrong. Version-Release number of selected component (if applicable): yp-tools-2.14-5 in Fedora 23, but also yp-tools-2.14-3.el7 in RHEL 7, and possibly other Fedora versions. How reproducible: Consistently fails when using passwd.adjunct. Steps to Reproduce: 1. Set up passwd.adjunct map on NIS server 2. Run yppasswd command on NIS client (F23 or RHEL7) 3. Enter passwords when prompted Actual results: "crypt() failed" error in response to new passwords Expected results: Should accept password without checking against "##user" string, and generate correct salt before calling crypt() Additional info: yp-tools-2.12-adjunct-fix.patch (attached) fixes problem. Use it instead of broken yp-tools-2.12-adjunct.patch file in src.rpm. --- Additional comment from Gilbert E. Detillieux on 2016-11-24 11:01:11 EST --- This bug still exists in RHEL7, and most likely in newer Fedora releases. --- Additional comment from Petr Kubat on 2016-11-28 09:04:39 EST --- Thanks for the report. I pushed the patch into rawhide and F25. --- Additional comment from Gilbert E. Detillieux on 2016-12-02 14:21:03 EST --- Any plans to make this update available for RHEL7?
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://access.redhat.com/errata/RHBA-2017:1880