Re: ASP.NET to SQL Server Int Security
From: Willy Denoyette [MVP] (willy.denoyette@pandora.be)
Date: 09/03/02
- Next message: Willy Denoyette [MVP]: "Re: Impersonate in ASP.NET and Server Timer - FileSystemWatcher"
- Previous message: Willy Denoyette [MVP]: "Re: LogonUser API Returns 1314"
- In reply to: Paul Lyons: "ASP.NET to SQL Server Int Security"
- Next in thread: Paul Lyons: "Re: ASP.NET to SQL Server Int Security"
- Reply: Paul Lyons: "Re: ASP.NET to SQL Server Int Security"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Willy Denoyette [MVP]" <willy.denoyette@pandora.be> Date: Tue, 3 Sep 2002 22:35:25 +0200
If the SQL and IIS server are separate boxes, you can't authenticate a browser client without Kerberos delegation setup correctly.
This requires an AD domain, and IE 5.x or higher clients.
The domain accounts must have Delegation enabled, and the IIS server machine account must be "trusted for delegation". You also
have to register SQL server in the AD (see Books online).
Note that
- IIS may not run on a DC, as a DC cannot be trusted for delegation.
- you throw away SQL connection pooling, as connections must carry the same credentials for pooling to work.
I would suggest to install your application as a COM+ application using fixed credentials to connect to SQL, and implement role
based security at the application level.
Willy.
"Paul Lyons" <ms.news@the-lyons.com> wrote in message news:daec01c2535a$a72cfa60$9ae62ecf@tkmsftngxa02...
> Hi
>
> I'm creating a suite of applications for my corporate
> Intranet & I've been running into problems getting my
> Windows Login to carry though from the pages I access to
> SQL Server.
> I'm certain that I've missed something simple, but I just
> can't seem to see it!
>
> I'm on XP clients with W2K servers, running SQL 2000.
> * In IIS I've disabled Anonymous Access and checked
> Integrated Windows Authentication.
> * In my web.config file I have the following options set:
> <authentication mode="Windows" />
> <identity impersonate="true" />
> * My connection string specifies "SSPI"
> * I have a valid account on the SQL Server (Server Admin!)
>
> When I try to connect to the data source the I get the
> error:
> "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'",
> which is strange becuse the entry in my IIS Logs with the
> 500 error seems to have my Domain & user name listed.
>
> Has anyone encountered anything similar. Any help or
> suggestions would be gratefully received.
>
> Thanks..Paul
>
>
- Next message: Willy Denoyette [MVP]: "Re: Impersonate in ASP.NET and Server Timer - FileSystemWatcher"
- Previous message: Willy Denoyette [MVP]: "Re: LogonUser API Returns 1314"
- In reply to: Paul Lyons: "ASP.NET to SQL Server Int Security"
- Next in thread: Paul Lyons: "Re: ASP.NET to SQL Server Int Security"
- Reply: Paul Lyons: "Re: ASP.NET to SQL Server Int Security"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|