Bug 470002 - yppasswd uses weak password hash and ignores system-config-authentication
Summary: yppasswd uses weak password hash and ignores system-config-authentication
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: yp-tools
Version: 9
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Vitezslav Crhonek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-11-05 07:37 UTC by Dr. Tilmann Bubeck
Modified: 2008-11-07 09:18 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-11-07 09:18:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dr. Tilmann Bubeck 2008-11-05 07:37:44 UTC
Description of problem:

Using "yppasswd" to change a password on a NIS server generates a password hash and enters it into /etc/shadow. But is uses the standard crypt password hash (outdated) and ignores my setting in system-config-authentication to use SHA512.

When I use "passwd" on the NIS server directly, then SHA512 will be used.

Version-Release number of selected component (if applicable):
ypserv-2.19-9.fc9.i386

How reproducible:
Always

Steps to Reproduce:
1. Install NIS server
2. log into NIS client
3. change pw using yppasswd
4. Use "ypcat passwd" to see, that wrong hash function was used.

  
Actual results:
a crypt hashed password

Expected results:
A SHA512 hashed password

Additional info:

Comment 1 Vitezslav Crhonek 2008-11-07 09:18:08 UTC
Hi,

Yes, NIS is old and insecure by design. Users are advised to use newer and more secured software, e. g. LDAP.

From man yppasswd:

"In  the old days, the standard passwd(1), chfn(1) and chsh(1) tools could not be used under Linux to change the users NIS password, shell and GECOS information. For changing the NIS information, they were replaced by  their  NIS  counterparts, yppasswd, ypchfn and ypchsh.

Today, this versions are deprecated and should not be used any longer."


Note You need to log in before you can comment on or make changes to this bug.