Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DC675200B30 for ; Mon, 4 Jul 2016 19:19:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DAFFA160A65; Mon, 4 Jul 2016 17:19:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3098F160A34 for ; Mon, 4 Jul 2016 19:19:14 +0200 (CEST) Received: (qmail 93453 invoked by uid 500); 4 Jul 2016 17:19:12 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 93437 invoked by uid 99); 4 Jul 2016 17:19:12 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jul 2016 17:19:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 3466A1858EE for ; Mon, 4 Jul 2016 17:19:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.374 X-Spam-Level: X-Spam-Status: No, score=0.374 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id mcPJFWoRqU3M for ; Mon, 4 Jul 2016 17:19:11 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTP id 817705F46E for ; Mon, 4 Jul 2016 17:19:10 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 94ABEE02E8 for ; Mon, 4 Jul 2016 17:19:09 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id B8C233A031D for ; Mon, 4 Jul 2016 17:19:08 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r1751351 - in /httpd/httpd/trunk/docs/manual/programs: htdbm.html.en htdbm.xml Date: Mon, 04 Jul 2016 17:19:08 -0000 To: cvs@httpd.apache.org From: rbowen@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160704171908.B8C233A031D@svn01-us-west.apache.org> archived-at: Mon, 04 Jul 2016 17:19:15 -0000 Author: rbowen Date: Mon Jul 4 17:19:08 2016 New Revision: 1751351 URL: http://svn.apache.org/viewvc?rev=1751351&view=rev Log: Give an example of converting a password file from one format to the other. Modified: httpd/httpd/trunk/docs/manual/programs/htdbm.html.en httpd/httpd/trunk/docs/manual/programs/htdbm.xml Modified: httpd/httpd/trunk/docs/manual/programs/htdbm.html.en URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/programs/htdbm.html.en?rev=1751351&r1=1751350&r2=1751351&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/programs/htdbm.html.en (original) +++ httpd/httpd/trunk/docs/manual/programs/htdbm.html.en Mon Jul 4 17:19:08 2016 @@ -279,6 +279,20 @@

Encrypts the password from the command line (Pwd4Steve) using the MD5 algorithm, and stores it in the specified file.

+ +

To convert an existing text file htpasswd-generated + password file to a dbm file, use awk to + feed each line of that file into htdbm:

+ +

+ htdbm -cbp passwords.dbm bogus bogus + awk ‘BEGIN { FS=”:” }; {system (“htdbm -bp passwords.dbm ” $1 ” ” $2)}’ passwords + htdbm -x bogus +

+ +

The first line creates a new password database with a temporary + placeholder entry, and the thrid line removes that placeholder.

+
top

Security Considerations

Modified: httpd/httpd/trunk/docs/manual/programs/htdbm.xml URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/programs/htdbm.xml?rev=1751351&r1=1751350&r2=1751351&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/programs/htdbm.xml (original) +++ httpd/httpd/trunk/docs/manual/programs/htdbm.xml Mon Jul 4 17:19:08 2016 @@ -272,6 +272,20 @@

Encrypts the password from the command line (Pwd4Steve) using the MD5 algorithm, and stores it in the specified file.

+ +

To convert an existing text file htpasswd-generated + password file to a dbm file, use awk to + feed each line of that file into htdbm:

+ + + htdbm -cbp passwords.dbm bogus bogus + awk ‘BEGIN { FS=”:” }; {system (“htdbm -bp passwords.dbm ” $1 ” ” $2)}’ passwords + htdbm -x bogus + + +

The first line creates a new password database with a temporary + placeholder entry, and the thrid line removes that placeholder.

+
Security Considerations