]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Backport change to htdbm to warning when trying to use
authorJeff Trawick <trawick@apache.org>
Thu, 13 Apr 2006 18:52:02 +0000 (18:52 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 13 Apr 2006 18:52:02 +0000 (18:52 +0000)
plaintext passwords on a platform where the server doesn't
support them.

Reviewed by: rpluem, colm

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@393883 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
STATUS
support/htdbm.c

diff --git a/CHANGES b/CHANGES
index 223149ecdb827956e9adca9f52d0cd7296a9b82f..231b312070ebd663e02fb4ab9f2dfab349220205 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,10 @@
                                                         -*- coding: utf-8 -*-
 Changes with Apache 2.2.2
 
+  *) htdbm: Warn the user when adding a plaintext password on a platform
+     where it wouldn't work with the server (i.e., anywhere that has
+     crypt()).  [Jeff Trawick]
+
   *) mod_proxy: don't reuse a connection that may be to the wrong backend
      PR 39253 [Ruediger Pluem]
 
diff --git a/STATUS b/STATUS
index 7f5c45c9517cbf4043dc7266019c43e7758bf813..e15b8ecd0958398829d525194cc87cb3db845e59 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -74,14 +74,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-    * htdbm: Warn when the user adds a plaintext password on a platform
-      with crypt().  The server will assume that the format is crypt().
-        Trunk version of patch:
-          http://svn.apache.org/viewcvs?rev=392944&view=rev
-        2.2.x version of patch:
-          Trunk version works
-      +1: trawick, rpluem, colm
-
 PATCHES PROPOSED TO BACKPORT FROM TRUNK:
 
     * mod_dbd: When threaded, create a private pool in child_init
index 5ad14c088b2c3ecda3f0d7025833dc3a17eb0d10..2c71834eb1910a1d69dbd050b581bca2cc284a5e 100644 (file)
@@ -308,6 +308,10 @@ static apr_status_t htdbm_make(htdbm_t *htdbm)
         case ALG_PLAIN:
             /* XXX this len limitation is not in sync with any HTTPd len. */
             apr_cpystrn(cpw,htdbm->userpass,sizeof(cpw));
+#if APR_HAVE_CRYPT_H
+            fprintf(stderr, "Warning: Plain text passwords aren't supported by the "
+                    "server on this platform!\n");
+#endif
         break;
 #if APR_HAVE_CRYPT_H
         case ALG_CRYPT: