httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Malo ...@perlig.de>
Subject Re: svn commit: r1751351 - in /httpd/httpd/trunk/docs/manual/programs: htdbm.html.en htdbm.xml
Date Tue, 05 Jul 2016 11:25:35 GMT
* rbowen@apache.org wrote:

> 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.h
>tml.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 @@
>
>      <p>Encrypts the password from the command line
> (<code>Pwd4Steve</code>) using the MD5 algorithm, and stores it in the
> specified file.</p> +
> +    <p>To convert an existing text file <code>htpasswd</code>-generated
> +    password file to a <code>dbm</code> file, use <code>awk</code>
to
> +    feed each line of that file into <code>htdbm</code>:</p>
> +
> +    <div class="example"><p><code>
> +      htdbm -cbp passwords.dbm bogus bogus
> +      awk &#8216;BEGIN { FS=&#8221;:&#8221; }; {system (&#8220;htdbm
-bp
> passwords.dbm &#8221; $1 &#8221; &#8221; $2)}&#8217; passwords +    
 htdbm
> -x bogus
> +    </code></p></div>

I think, those characters won't work on the shell (c&p!). They should be 
single and double quotes, right?

Cheers,
nd
-- 
Winnetous Erbe: <http://pub.perlig.de/books.html#apache2>

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Mime
View raw message