Re: HTTP Digest Authentication against Windows account
- From: Alan Dean <alan.dean@xxxxxxxxx>
- Date: Tue, 18 Sep 2007 23:29:15 -0000
Joe,
Thanks for replying :-)
If I enable "digest authentication for windows domain servers" only
then all I get is a 401 Unauthorized
If I also switch on IWA, then I get the NTLM challenge, which is not
what I want.
How can I force IIS to emit a Digest WWW-Authenticate?
Note: "Anonymous Access" must be enabled - the Digest auth only
applies to a subset of paths on the site.
Further - if IIS is indeed able to emit a Digest challenge and
authenticate a Digest Authorization header, I can only assume that
there is an API that exposes the digest hash for comparison. This is
the API I am after, really.
Alan
On Sep 18, 11:51 pm, "Joe Kaplan"
<joseph.e.kap...@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Why not enable digest auth in IIS? There is a setting that is different
than IWA and Basic. It implements the Digest protocol against the Windows
store (although I'm not sure if it works with non-AD accounts).
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"http://www.directoryprogramming.net
--"Alan Dean" <alan.d...@xxxxxxxxx> wrote in message
news:1190153240.997094.322100@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
I have written support for HTTP Digest Authentication in my ASP.NET
application.
When I am authenticating against a custom user store, such as a
database, all is well. The way Digest works is a one-way hash so I
simply retrieve the password, hash it, and compare the result against
what has come in on the Authorization header.
I want to be able to support authentication against Windows accounts
as well.
Unfortunately, I cannot see how I can achieve this. Here is my
thinking at present:
1) I don't want to use the built-in IIS Windows Auth functionality
(because it uses a proprietary NTLM Auth scheme, not Digest)
2) I cannot directly obtain the password of a user account from
Windows (this is entirely sensible, of course, to avoid a nasty
security hole).
3) I don't want to use HTTP Basic Auth because of it's vulnerability
to sniffers.
My question is this: Is there any way of programmatically getting
Windows to provide a Digest hash of a user password for me to compare
with the Authorization header?
Regards,
Alan Dean
http://thoughtpad.net/alan-dean
http://simplewebservices.org- Hide quoted text -
- Show quoted text -
.
- Follow-Ups:
- Re: HTTP Digest Authentication against Windows account
- From: Joe Kaplan
- Re: HTTP Digest Authentication against Windows account
- References:
- HTTP Digest Authentication against Windows account
- From: Alan Dean
- Re: HTTP Digest Authentication against Windows account
- From: Joe Kaplan
- HTTP Digest Authentication against Windows account
- Prev by Date: Re: HTTP Digest Authentication against Windows account
- Next by Date: Re: HTTP Digest Authentication against Windows account
- Previous by thread: Re: HTTP Digest Authentication against Windows account
- Next by thread: Re: HTTP Digest Authentication against Windows account
- Index(es):
Relevant Pages
|
|