Re: Double number of calls when Basic Authentication?
From: Ken Schaefer (kenREMOVE_at_THISadOpenStatic.com)
Date: 05/26/04
- Next message: David Coe, MCP: "RE: Getting AD Groups"
- Previous message: Joe H: "Double number of calls when Basic Authentication?"
- In reply to: Joe H: "Double number of calls when Basic Authentication?"
- Next in thread: Joseph E Shook [MVP - ADSI]: "Re: Double number of calls when Basic Authentication?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 26 May 2004 23:05:33 +1000
That's the way any HTTP authentication system works (by default). If you use
NTLM v2 (part of Integrated Windows Auth) you'll see even more requests
logged :-)
The first request is anonymous. The server denies the anonymous request, and
sends back a list of supported authentication mechanisms. The client picks
the strongest one that it supports, and then attempts the request again
using credentials. Most clients will then cache the credentials for
subsequent accesses to the server, until the client is terminated.
Now, I suppose you could build a custom client that doesn't attempt
anonymous authentication first - it authenticates from the very first
request.
Cheers
Ken
"Joe H" <jharri@hotmail.com> wrote in message
news:OL82otxQEHA.3348@TK2MSFTNGP09.phx.gbl...
: I have a web service that is set to use Basic Authentication (for users
: outside the firewall). They are coming in over SSL. It uses Integrated
: Authentication for internal users.
:
: For the users who are requesting service with Basic Authentication, there
is
: a VB.Net client application which is using the NetworkCredential to pass
the
: authentication information to the web service.
:
: However, the sequence of events that seems to always happen is:
:
: 1. client sends request
: 2. service responds with 401
: 3. client sends request again, this time including the authentication
: information (user, password, domain)
:
: So, in my IIS logs, there is a duplicate entry for each call to the web
: service. The first log entry has a user value of " - " (this entry also
has
: the 401 code returned), and the second log entry has the correct user
name.
: I am certain that this is affecting overall performance of the web
service.
:
: What do I need to do in order to eliminate this "round-trip" from
happening?
:
: Thanks,
: Joe
:
:
- Next message: David Coe, MCP: "RE: Getting AD Groups"
- Previous message: Joe H: "Double number of calls when Basic Authentication?"
- In reply to: Joe H: "Double number of calls when Basic Authentication?"
- Next in thread: Joseph E Shook [MVP - ADSI]: "Re: Double number of calls when Basic Authentication?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|