Re: SQL and IIS on Separate machines
From: Jason Kleban (jason.kleban_at_bdhhi.com)
Date: 08/07/03
- Previous message: Microsoft: "Bypassing form Authentication"
- In reply to: Chris Jackson: "Re: SQL and IIS on Separate machines"
- Next in thread: Chris Jackson: "Re: SQL and IIS on Separate machines"
- Reply: Chris Jackson: "Re: SQL and IIS on Separate machines"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 7 Aug 2003 11:29:35 -0700
Doesn't that require me to hardcode or somehow otherwise
manage yet another password?
Jason
>-----Original Message-----
>With impersonation and anonymous authentication, you will
be giving the
>credentials of the IIS process. Change the IIS process to
use the domain
>account that you want, keep impersonation on, and you
should authenticate
>fine.
>
>--
>Chris Jackson
>Software Engineer
>Microsoft MVP - Windows XP
>Windows XP Associate Expert
>--
>"Jason Kleban" <jason.kleban@bdhhi.com> wrote in message
>news:008b01c35c3b$1cca1f20$a401280a@phx.gbl...
>> I have IIS and SQL server on separate machines. The IIS
>> machine houses a C# class library that implements the
>> business logic and uses an approle to gain access to
>> stored procedures on the SQL server.
>>
>> If I use the library in a windows app, everything works
>> fine because my domain account, while it has no added
>> rights on the SQL Server, can at least talk to it and
run
>> the sp_setapprole.
>>
>> The problem occurs when I try to use this library in an
>> ASP.NET application. I get an error "Login failed for
>> user '(null)'. Reason: Not associated with a trusted SQL
>> Server connection."
>>
>> When I add <identity impersonate="true" /> to my
>> web.config, I get "Login failed for user 'NT
>> AUTHORITY\ANONYMOUS LOGON'."
>>
>> I've tried to hard code the username and password into
the
>> machine.config to be a domain account instead of
>> machine:AutoGenerate, but the change doesn't seem to
have
>> any effect.
>>
>> What is the best way to handle this situation? I want
to
>> stick to Windows Authentication and not use SQL
>> Authentication. I will also need windows authentication
>> for some parts of the site, although most pages should
be
>> accessible by anonymous web users.
>>
>> I've seen many posts on the net skirting this issue, one
>> hitting it dead on it seems (in Google) but the link is
>> dead and the google cache didn't save it.
>
>
>.
>
- Previous message: Microsoft: "Bypassing form Authentication"
- In reply to: Chris Jackson: "Re: SQL and IIS on Separate machines"
- Next in thread: Chris Jackson: "Re: SQL and IIS on Separate machines"
- Reply: Chris Jackson: "Re: SQL and IIS on Separate machines"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|