Digest Auth driving me nuts!!!

This is a discussion on Digest Auth driving me nuts!!! within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hi guys, got a problem with digest auth. - did everything by the book + tried every possible suggestion I could find ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-21-2006
Ronson
 
Posts: n/a
Default Digest Auth driving me nuts!!!

Hi guys,

got a problem with digest auth. - did everything by the book + tried
every possible suggestion I could find on the net - nothing.

What I'm trying to do is very simple - I have a directory in my
DocumentRoot which I want to password-protect, so:

<Directory "C:/MySite/Protected/">
AuthType Digest
AuthName "Private"
AuthDigestFile /bin/passwords
Require user ron
</Directory>

and using htdigest:

htdigest -c passwords private ron

now, everytime I try to access the folder my username and/or password
are not accepted.

any ideas, oh experienced ones?

Windows XP SP2
Apache 2.0.55
PHP 5.1.1

  #2 (permalink)  
Old 01-22-2006
Tim
 
Posts: n/a
Default Re: Digest Auth driving me nuts!!!

On Fri, 20 Jan 2006 18:03:26 -0800, Ronson sent:

> got a problem with digest auth. - did everything by the book + tried every
> possible suggestion I could find on the net - nothing.
>
> <Directory "C:/MySite/Protected/">


The manual states you shouldn't end directory directives with a slash.

> AuthDigestFile /bin/passwords


You're storing passwords in your /bin directory?!?!? Apart from the fact
you shouldn't be putting things that aren't binary executables in there,
the /bin directory is readable by everybody.

> Windows XP SP2
> Apache 2.0.55
> PHP 5.1.1


But which browser? If you installed the docs with your server, look at:
<http://localhost/manual/howto/auth.html>, otherwise go to the Apache
website. It mentions that *that* method of authentication isn't widely
supported in clients.

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please destroy some files yourself.

  #3 (permalink)  
Old 01-22-2006
Paul Rubin
 
Posts: n/a
Default Re: Digest Auth driving me nuts!!!

"Ronson" <ronroze@gmail.com> writes:
> any ideas, oh experienced ones?


Digest auth never really caught on. If you're concerned about
passwords getting sniffed with basic auth, the preferred solution is
enable SSL and let the application check the password. Digest auth
isn't all that great. SSL prevents exposing the hashed password to
offline dictionary search, and checking passwords in the application
means you can do things like temporarily lock out the user account
after too many wrong password guesses. Most http authentication
modules (whether digest or basic) don't bother with such precautions.
  #4 (permalink)  
Old 01-23-2006
Per Weisteen
 
Posts: n/a
Default Re: Digest Auth driving me nuts!!!

Paul Rubin wrote:
> "Ronson" <ronroze@gmail.com> writes:
>
>>any ideas, oh experienced ones?

>
>
> Digest auth never really caught on. If you're concerned about
> passwords getting sniffed with basic auth, the preferred solution is
> enable SSL and let the application check the password. Digest auth
> isn't all that great. SSL prevents exposing the hashed password to
> offline dictionary search, and checking passwords in the application
> means you can do things like temporarily lock out the user account
> after too many wrong password guesses. Most http authentication
> modules (whether digest or basic) don't bother with such precautions.



I'm sorry to say that I disagree on this suggestion. Of course using SSL
hides the password but it also hides all content and that may not
neccesarily be a good thing because it negates any performance
optimization possible through intelligent web caching.
After HTTP 1.1 standard was finalized and digest auth became available
we've been constantly trying to force vendors to accept this standard,
alas with varying success. Having Apache supporting digest auth as a
reference implementation is therefore very important.

With regards to the lock-out issue I believe this should be handled by a
Web server authentication plugin and not by the application. Use of
software like Oracle/Oblix Netpoint Access Mgr or Sun Access Mgr.
isolates the authentication from the application and ensures consistent
lock out and password policies throughout all your web applications. I
believe this could also be performed by native LDAP plugin for Apache.

Per W.
Hydro IS Partner
  #5 (permalink)  
Old 01-23-2006
Paul Rubin
 
Posts: n/a
Default Re: Digest Auth driving me nuts!!!

Per Weisteen <per.weisteen@hydro.com> writes:
> I'm sorry to say that I disagree on this suggestion. Of course using
> SSL hides the password but it also hides all content and that may not
> neccesarily be a good thing because it negates any performance
> optimization possible through intelligent web caching.


If you look at ebay, hotmail, etc., when you log in, the form
submission goes to an SSL target page so your password is encrypted.
The target page sets an authentication cookie and redirects you to a
normal http page, and you then surf around using normal http. So you
get all that caching and stuff except for the page that actually sees
your password. Of course someone might intercept the cookie and
re-use it, but it should have a timeout. You can think of obvious
ways to referesh a timed-out cookie by setting a second cookie through
SSL and redirecting to a page that checks the SSL cookie if the
non-SSL cookie is timed out.
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:43 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0