Blame SOURCES/yp-tools-2.12-adjunct.patch

036199
--- yp-tools-2.14/src/yppasswd.c.adjunct	2017-01-04 08:40:17.081225336 +0100
036199
+++ yp-tools-2.14/src/yppasswd.c	2017-01-04 08:41:01.214077346 +0100
036199
@@ -450,6 +450,7 @@
b588fa
   passwdlen = get_passwd_len (pwd->pw_passwd);
b588fa
   if (pwd->pw_passwd[0] 
036199
       && 0 != strcmp (pwd->pw_passwd, "x") /* don't check shadow passwords */
036199
+      && 0 != strncmp (pwd->pw_passwd, "##", 2) /* don't check passwords using passwd.adjunct feature */
b588fa
       && uid)
b588fa
     {
b588fa
       char *crypted = crypt(pwdstr, pwd->pw_passwd);
036199
@@ -774,6 +775,7 @@
036199
       /* We can't check the password with shadow passwords enabled. We
036199
        * leave the checking to yppasswdd */
036199
       if (uid != 0 && strcmp (pwd->pw_passwd, "x") != 0 &&
036199
+	  0 != strncmp (pwd->pw_passwd, "##", 2) && /* don't check passwords using passwd.adjunct feature */
036199
 	  strcmp (pwd->pw_passwd, hashpass ) != 0)
036199
 	{
036199
 	  int passwdlen = get_passwd_len (pwd->pw_passwd);