Comment 13 for bug 1204530

Revision history for this message
James C. West (jcwest16) wrote :

I checked the link that Philip gave and the patch at the beginning worked for 14.04 when I recompiled the nis package from source. My users can finally change their passwords! The patch is

--- nis-3.17.orig/yp-tools-2.9/src/yppasswd.c 2013-09-03 12:08:35.000000000 -0400
+++ ./yppasswd.c 2013-09-03 12:07:30.000000000 -0400
@@ -406,7 +406,7 @@
       return 0;
     }

- if (pwd->pw_passwd[0]
+ if (pwd->pw_passwd[0] && pwd->pw_passwd[1]
       && !strncmp (pwd->pw_passwd, crypt (pwdstr, pwd->pw_passwd), 13)
       && uid)
     {

Can this be added to the Trusty release?