ASP Impersonation - null user



Hi, this could be an ASP, IIS or SQL server question so please bear with me!

We have an sql server 2000 machine and our IIS 6 machine running seperately
but on the same domain. I can connect fine to the database without using
impersonation, but when it's enabled I get the error:
"Login failed for user '(null)'. Reason: Not associated with a trusted SQL
Server connection."
I've tried looking into this, and noted suggestions of copying accounts to
the database server machine.. is this really necessary? they're on the same
domain, and that would be lots of hassle as I'm hoping to allow anyone on
the domain access to the pages, with authorisation being ran against the sql
server roles/security groups.

Hope my query makes sense.. for info when I check
System.Security.Principal.WindowsIdentity.GetCurrent().Name I get the
expected result.

cheers for any help,
Chris


.



Relevant Pages

  • Re: IS IT SAFE TO HOST SQL SERVER AND IIS SERVER ON THE SAME MACHINE
    ... > safe to host a web application on a mchine outside of our firewall ... and the sql server would reside on this one machine. ... The vulnerabilities of Windows, IIS and SQL are well known, so you ...
    (microsoft.public.inetserver.iis.security)
  • Re: SQL 2000 and web server (IIS)
    ... I would put the IIS machine in the DMZ and the SQL Server on the LAN. ... IIS server should be outside AD and the SQL server should be on the domain. ... The Green zone is your Lan. ...
    (microsoft.public.sqlserver.setup)
  • Re: MP Control Manager detected MP is not responding to HTTP requests
    ... IIS lockdown isn't needed for Windows server 2003. ... Did you get an error status message in the SMS admin console for MP control ... The SQL server site system is turned off, ...
    (microsoft.public.sms.setup)
  • Re: exploited win2k box, not quite sure how:
    ... The second thing I would look for is to make sure that the IIS ftp server ... If you have nimda droppings on ... The last one I would check Has the SA account on SQL server had a password ...
    (Incidents)
  • =?Utf-8?Q?Re:_Verschl=C3=BCsselte_SQL_Verbindun?= =?Utf-8?Q?g?=
    ... Authentifizierung) in meiner Applikation am Server anmelden. ... Nein, er muss sich ja nicht am SQL Server anmelden, sondern beim Webserver. ... Die Anmeldung am SQL Server macht ja dann die Application, die auf dem IIS ... Der Benutzer meldet sich bei Windows an. ...
    (microsoft.public.de.sqlserver)