Version-Release number of selected component (if applicable): yptools-2.9-4 Upstream yppasswd only creates DES-hashed passwords, yppasswd in Fedora creates a md5 password if the original used md5. Please extend this to support SHA-2 passwords, per http://people.redhat.com/drepper/SHA-crypt.txt . (The "passwdlen = 13 + strspn(pwd->pw_passwd + 13, ...)" truncation will also have to be modified, because the salt in SHA-2 can have 16 characters, and be preceded with $5$rounds=999999999$.)
Created attachment 333991 [details] Proposed patch (should be applyed in current yp-tools devel) Proposed patch, slightly tested and worked fine. Please let me know if you find mistake or something is not complete.
The patch looks fine to me.