IIS & SQL Issues

From: TipTop (aburley_at_speakeasy.net)
Date: 04/17/04


Date: Sat, 17 Apr 2004 15:40:48 -0400

I am trying to use integrated Windows authentication and
impersonation to run a page that accesses SQL Server via integrated
security. It's not working -- sort of. I've set IIS security to
integrated Windows authentication (and unchecked the other options).
I've set the web.config to use Windows authentication and set
impersonation to true. The connection string includes Integrated
Security = SSPI. And it works... if you access the page from the same
machine. If you call the page over the network (even when logged in
under the same Windows account as when on the server), it fails with
the "Login failed for user '(null)'" error. I display the results of
Environment.UserName on the page (commenting out the sql connection
code so that it will run when calling it over the network), and in all
cases it shows the correct username. (I call the page over the network
and sure enough it displays my account name.)



Relevant Pages

  • RE: IIS6 Security Settings, best practices
    ... I use Integrated Windows Authentication and see no problem with pushing out ... think it's the IFRAMES setting in MSIE's Advanced settings). ... that affect how you implement or roll out security. ...
    (microsoft.public.sharepoint.portalserver)
  • Windows Auth requires Anonymous access too...why?
    ... Integrated Windows Authentication, and no other security was required. ... was working for those computers who were already in the domain, ...
    (microsoft.public.inetserver.iis.security)
  • RE: Login Failure to Frontpage Admin
    ... compromise security to my websites and my server as the follwing procedure ... did popup a security message. ... My websites by default were ALL set to "Integrated Windows Authentication" ...
    (microsoft.public.frontpage.extensions.windowsnt)
  • Re: IIS 6 Default Domain
    ... When using Integrated Windows Authentication, the default security realm is ... always the local machine. ... www.adopenstatic.com (there is a link to get a sample chapter of the IIS ...
    (microsoft.public.windows.server.general)
  • Re: IIS 6 Default Domain
    ... When using Integrated Windows Authentication, the default security realm is ... always the local machine. ... www.adopenstatic.com (there is a link to get a sample chapter of the IIS ...
    (microsoft.public.inetserver.iis)