904b9f
diff -up Linux-PAM-1.1.5/modules/pam_unix/pam_unix.8.xml.no-fallback Linux-PAM-1.1.5/modules/pam_unix/pam_unix.8.xml
904b9f
--- Linux-PAM-1.1.5/modules/pam_unix/pam_unix.8.xml.no-fallback	2011-06-21 11:04:56.000000000 +0200
904b9f
+++ Linux-PAM-1.1.5/modules/pam_unix/pam_unix.8.xml	2012-05-09 11:54:34.442036404 +0200
904b9f
@@ -265,11 +265,10 @@
904b9f
         <listitem>
904b9f
           <para>
904b9f
             When a user changes their password next,
904b9f
-            encrypt it with the SHA256 algorithm. If the
904b9f
-            SHA256 algorithm is not known to the <citerefentry>
904b9f
+            encrypt it with the SHA256 algorithm. The
904b9f
+            SHA256 algorithm must be supported by the <citerefentry>
904b9f
 	    <refentrytitle>crypt</refentrytitle><manvolnum>3</manvolnum>
904b9f
-            </citerefentry> function,
904b9f
-            fall back to MD5.
904b9f
+            </citerefentry> function.
904b9f
           </para>
904b9f
         </listitem>
904b9f
       </varlistentry>
904b9f
@@ -280,11 +279,10 @@
904b9f
         <listitem>
904b9f
           <para>
904b9f
             When a user changes their password next,
904b9f
-            encrypt it with the SHA512 algorithm. If the
904b9f
-            SHA512 algorithm is not known to the <citerefentry>
904b9f
+            encrypt it with the SHA512 algorithm. The
904b9f
+            SHA512 algorithm must be supported by the <citerefentry>
904b9f
 	    <refentrytitle>crypt</refentrytitle><manvolnum>3</manvolnum>
904b9f
-            </citerefentry> function,
904b9f
-            fall back to MD5.
904b9f
+            </citerefentry> function.
904b9f
           </para>
904b9f
         </listitem>
904b9f
       </varlistentry>
904b9f
@@ -295,11 +293,10 @@
904b9f
         <listitem>
904b9f
           <para>
904b9f
             When a user changes their password next,
904b9f
-            encrypt it with the blowfish algorithm. If the
904b9f
-            blowfish algorithm is not known to the <citerefentry>
904b9f
+            encrypt it with the blowfish algorithm. The
904b9f
+            blowfish algorithm must be supported by the <citerefentry>
904b9f
 	    <refentrytitle>crypt</refentrytitle><manvolnum>3</manvolnum>
904b9f
-            </citerefentry> function,
904b9f
-            fall back to MD5.
904b9f
+            </citerefentry> function.
904b9f
           </para>
904b9f
         </listitem>
904b9f
       </varlistentry>
904b9f
diff -up Linux-PAM-1.1.5/modules/pam_unix/passverify.c.no-fallback Linux-PAM-1.1.5/modules/pam_unix/passverify.c
904b9f
--- Linux-PAM-1.1.5/modules/pam_unix/passverify.c.no-fallback	2012-05-09 11:48:12.409632377 +0200
904b9f
+++ Linux-PAM-1.1.5/modules/pam_unix/passverify.c	2012-05-09 11:48:36.953172291 +0200
904b9f
@@ -427,15 +427,14 @@ PAMH_ARG_DECL(char * create_password_has
904b9f
 	if (!sp || strncmp(algoid, sp, strlen(algoid)) != 0) {
904b9f
 		/* libxcrypt/libc doesn't know the algorithm, use MD5 */
904b9f
 		pam_syslog(pamh, LOG_ERR,
904b9f
-			   "Algo %s not supported by the crypto backend, "
904b9f
-			   "falling back to MD5\n",
904b9f
+			   "Algo %s not supported by the crypto backend.\n",
904b9f
 			   on(UNIX_BLOWFISH_PASS, ctrl) ? "blowfish" :
904b9f
 			   on(UNIX_SHA256_PASS, ctrl) ? "sha256" :
904b9f
 			   on(UNIX_SHA512_PASS, ctrl) ? "sha512" : algoid);
904b9f
 		if(sp) {
904b9f
 		   memset(sp, '\0', strlen(sp));
904b9f
 		}
904b9f
-		return crypt_md5_wrapper(password);
904b9f
+		return NULL;
904b9f
 	}
904b9f
 
904b9f
 	return x_strdup(sp);