You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ke...@apache.org on 2003/01/08 23:18:01 UTC

cvs commit: httpd-docs-1.3/htdocs/manual/howto auth.html

kess        2003/01/08 14:18:01

  Modified:    htdocs/manual/howto auth.html
  Log:
  fix PR 15577 as reportet by  <do...@planetconnect.com> (D Monroe)
  
  Revision  Changes    Path
  1.10      +13 -14    httpd-docs-1.3/htdocs/manual/howto/auth.html
  
  Index: auth.html
  ===================================================================
  RCS file: /home/cvs/httpd-docs-1.3/htdocs/manual/howto/auth.html,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- auth.html	17 Nov 2002 01:56:39 -0000	1.9
  +++ auth.html	8 Jan 2003 22:18:01 -0000	1.10
  @@ -13,12 +13,12 @@
   <h1 align="center">Authentication, Authorization, and Access
   Control</h1>
   
  -    <a name="TOC"></a> 
  +    <a name="TOC"></a>
   
       <ul>
         <li><a href="#intro">Introduction</a></li>
         <li>
  -        <a href="#basic">Basic authentication</a> 
  +        <a href="#basic">Basic authentication</a>
   
           <ul>
             <li><a href="#basicworks">How basic
  @@ -26,13 +26,13 @@
   
             <li>
               <a href="#basicconfig">Configuration:
  -            Protecting content with basic authentication</a> 
  +            Protecting content with basic authentication</a>
   
             </li>
   
             <li>
               <a href="#basicfaq">Frequently asked
  -            questions about basic auth</a> 
  +            questions about basic auth</a>
             </li>
   
             <li><a href="#basiccaveat">Security
  @@ -42,7 +42,7 @@
         </li>
   
         <li>
  -        <a href="#digest">Digest authentication</a> 
  +        <a href="#digest">Digest authentication</a>
   
           <ul>
             <li><a href="#digestworks">How digest auth
  @@ -50,7 +50,7 @@
   
             <li>
               <a href="#digestconfig">Configuration:
  -            Protecting content with digest authentication</a> 
  +            Protecting content with digest authentication</a>
             </li>
   
             <li><a href="#digestcaveat">Caveats</a></li>
  @@ -60,7 +60,7 @@
   
         <li>
           <a href="#database">Database authentication
  -        modules</a> 
  +        modules</a>
   
           <ul>
             <li><a href="#modauthdb">mod_auth_db and
  @@ -72,14 +72,14 @@
   
             <li>
               <a href="#authdbconfig">Protecting a
  -            directory with mod_auth_db</a> 
  +            directory with mod_auth_db</a>
             </li>
           </ul>
           <br />
         </li>
   
         <li>
  -        <a href="#access">Access control</a> 
  +        <a href="#access">Access control</a>
   
           <ul>
             <li><a href="#allowdeny">Allow and Deny</a></li>
  @@ -185,7 +185,7 @@
       <p>Along with the <tt>401</tt> response, certain other
       information will be passed back to the client. In particular,
       it sends a name which is associated with the protected area of
  -    the web site. This is called the <i>realm</i>, or just the 
  +    the web site. This is called the <i>realm</i>, or just the
       authentication name. The client
       browser caches the username and password that you supplied, and
       stores it along with the authentication realm, so that if other
  @@ -624,7 +624,7 @@
       Additional information and resources about MD5 can be found at
       <tt>http://userpages.umbc.edu/&nbsp;mabzug1/cs/md5/md5.html</tt></p>
   
  -    <h2><a name="digestconfig"></a>Configuration: 
  +    <h2><a name="digestconfig"></a>Configuration:
       Protecting content with digest authentication</h2>
   
       <p>The steps for configuring your server for digest
  @@ -967,7 +967,7 @@
   $username = 'rbowen';
   $password = 'mypassword';
   @chars=(0..9,'a'..'z');
  -$salt = '', map { $chars[int rand @chars] } (0..1);
  +$salt = $chars[int rand @chars] . $chars[int rand @chars];
   
   $crypt = crypt($password, $salt);
   $database{$username} = $crypt;
  @@ -1187,5 +1187,4 @@
       <hr />
   
     </body>
  -</html>
  -
  +</html>
  \ No newline at end of file
  
  
  

Re: cvs commit: httpd-docs-1.3/htdocs/manual/howto auth.html

Posted by Astrid Keßler <ke...@kess-net.de>.
> 	If you're using regular CVS, try checking in with
> "--ignore-space-change", or "-b"; if you find an option that helps,
> you should be able to put it into ~/.cvsrc, as in "diff -b".

Thank you for this hint. But this is not what I want. I do not want to 
commit the whitespace changes. With the help of "cvs diff 
--ignore-space-changes" I would have to do the work at a copy of my 
checkout, create a diff, patch my checkout and then commit this. 

Ugh, then I'm better using another editor.

 Kess

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


Re: cvs commit: httpd-docs-1.3/htdocs/manual/howto auth.html

Posted by Chris Pepper <pe...@reppep.com>.
At 1:57 AM +0100 2003/01/09, Astrid Keßler wrote:
>  >> This is because my editor changes tabs to spaces and truncates trailing
>>>  spaces. So there are non visible changes.
>>
>>  Please don't mix visible changes with non-visible changes in the same
>>  commit.  -- justin
>
>Can you give me a hint how to do so? I can't influence the invisible
>changes me editor does. Is there any way to exclude them from a cvs commit?
>Or will I have to change my editor?
>I would be glad to get some help.

	If you're using regular CVS, try checking in with 
"--ignore-space-change", or "-b"; if you find an option that helps, 
you should be able to put it into ~/.cvsrc, as in "diff -b".

	If you're using a CVS checkin funciton built into your 
editor, I'd file a bug against tab mangling -- what editor are you 
using?

	diff.1 says:

        -b     Ignore changes in amount of white space.

        --ignore-all-space
	      Ignore white space when comparing lines.

        --ignore-space-change
	      Ignore changes in amount of white space.

        -w     Ignore white space when comparing lines.


						Regards,


						Chris Pepper
-- 
Chris Pepper:               <http://www.reppep.com/~pepper/>
Rockefeller University:     <http://www.rockefeller.edu/>

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


Re: cvs commit: httpd-docs-1.3/htdocs/manual/howto auth.html

Posted by Astrid Keßler <ke...@kess-net.de>.
>> This is because my editor changes tabs to spaces and truncates trailing
>> spaces. So there are non visible changes.
> 
> Please don't mix visible changes with non-visible changes in the same
> commit.  -- justin

Can you give me a hint how to do so? I can't influence the invisible 
changes me editor does. Is there any way to exclude them from a cvs commit?
Or will I have to change my editor?
I would be glad to get some help.
 Kess

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


Re: cvs commit: httpd-docs-1.3/htdocs/manual/howto auth.html

Posted by Justin Erenkrantz <je...@apache.org>.
--On Thursday, January 09, 2003 01:00:15 +0100 Astrid Keßler 
<ke...@kess-net.de> wrote:

> This is because my editor changes tabs to spaces and truncates trailing
> spaces. So there are non visible changes.

Please don't mix visible changes with non-visible changes in the same 
commit.  -- justin

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


Re: cvs commit: httpd-docs-1.3/htdocs/manual/howto auth.html

Posted by Astrid Keßler <ke...@kess-net.de>.
> That's what I get for trying to be clever with the Perl code. This is
> not broken just on Perl 5.6.0 and 5.6.1, but won't work anywhere at all.
> I had intended for that , to be a . but that won't work either. And the
> new version is, I suppose, more readable anyways.

I was only a little bit lazy. No thought about readability. 

Hm, thinking about a second time it seems, that you wanted to use the 
following:
   @chars = ('a'..'z','A'..'Z','0'..'9','.');
   $salt = join '', map {$char[rand(@chars)]} (0..1); 
This should work everywhere. And it looks nicer for me, but but maybe not 
for a Perl beginner. And I would bet, this is more slowly.

> I'm a little confused by the rest of the diff, though, which a dozen
> other lines being replaced with themselves. What's up with that?

This is because my editor changes tabs to spaces and truncates trailing 
spaces. So there are non visible changes. 

 Kess

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


Re: cvs commit: httpd-docs-1.3/htdocs/manual/howto auth.html

Posted by Justin Erenkrantz <je...@apache.org>.
--On Wednesday, January 08, 2003 18:09:18 -0500 Rich Bowen 
<rb...@rcbowen.com> wrote:

> I'm a little confused by the rest of the diff, though, which a dozen
> other lines being replaced with themselves. What's up with that?

Line endings being morphed perhaps?  -- justin

Re: cvs commit: httpd-docs-1.3/htdocs/manual/howto auth.html

Posted by Justin Erenkrantz <je...@apache.org>.
--On Wednesday, January 08, 2003 18:09:18 -0500 Rich Bowen 
<rb...@rcbowen.com> wrote:

> I'm a little confused by the rest of the diff, though, which a dozen
> other lines being replaced with themselves. What's up with that?

Line endings being morphed perhaps?  -- justin

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


Re: cvs commit: httpd-docs-1.3/htdocs/manual/howto auth.html

Posted by Justin Erenkrantz <je...@apache.org>.
--On Wednesday, January 08, 2003 18:09:18 -0500 Rich Bowen 
<rb...@rcbowen.com> wrote:

> I'm a little confused by the rest of the diff, though, which a dozen
> other lines being replaced with themselves. What's up with that?

Line endings being morphed perhaps?  -- justin

Re: cvs commit: httpd-docs-1.3/htdocs/manual/howto auth.html

Posted by Rich Bowen <rb...@rcbowen.com>.
On 8 Jan 2003 kess@apache.org wrote:

>   -$salt = '', map { $chars[int rand @chars] } (0..1);
>   +$salt = $chars[int rand @chars] . $chars[int rand @chars];

That's what I get for trying to be clever with the Perl code. This is
not broken just on Perl 5.6.0 and 5.6.1, but won't work anywhere at all.
I had intended for that , to be a . but that won't work either. And the
new version is, I suppose, more readable anyways.

I'm a little confused by the rest of the diff, though, which a dozen
other lines being replaced with themselves. What's up with that?

-- 
Nothing is perfekt. Certainly not me.
Success to failure. Just a matter of degrees.


Re: cvs commit: httpd-docs-1.3/htdocs/manual/howto auth.html

Posted by Rich Bowen <rb...@rcbowen.com>.
On 8 Jan 2003 kess@apache.org wrote:

>   -$salt = '', map { $chars[int rand @chars] } (0..1);
>   +$salt = $chars[int rand @chars] . $chars[int rand @chars];

That's what I get for trying to be clever with the Perl code. This is
not broken just on Perl 5.6.0 and 5.6.1, but won't work anywhere at all.
I had intended for that , to be a . but that won't work either. And the
new version is, I suppose, more readable anyways.

I'm a little confused by the rest of the diff, though, which a dozen
other lines being replaced with themselves. What's up with that?

-- 
Nothing is perfekt. Certainly not me.
Success to failure. Just a matter of degrees.


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


Re: cvs commit: httpd-docs-1.3/htdocs/manual/howto auth.html

Posted by Rich Bowen <rb...@rcbowen.com>.
On 8 Jan 2003 kess@apache.org wrote:

>   -$salt = '', map { $chars[int rand @chars] } (0..1);
>   +$salt = $chars[int rand @chars] . $chars[int rand @chars];

That's what I get for trying to be clever with the Perl code. This is
not broken just on Perl 5.6.0 and 5.6.1, but won't work anywhere at all.
I had intended for that , to be a . but that won't work either. And the
new version is, I suppose, more readable anyways.

I'm a little confused by the rest of the diff, though, which a dozen
other lines being replaced with themselves. What's up with that?

-- 
Nothing is perfekt. Certainly not me.
Success to failure. Just a matter of degrees.