Re: Can't run IIS and SQL Server on Separate Machines with Trusted Connection

From: Bala Neerumalla[MSFT] (balnee@online.microsoft.com)
Date: 03/15/03

  • Next message: Bala Neerumalla[MSFT]: "Re: Windows Authentication - problem"
    From: "Bala Neerumalla[MSFT]" <balnee@online.microsoft.com>
    Date: Fri, 14 Mar 2003 21:22:26 -0800
    
    

    Hi Julie,
        Based on your error message, its clear that you are falling back to
    NTLM. For Delegation to work, you need to make sure that you have configured
    the following properly.

    1. IIS Server must be trusted for delegation(Open AD Users and Computers mmc
    snap-in on a Domain Controller and select IIS Server machine from computers
    folder and double click it to set this). By default machines are not trusted
    for delegation, so you need to grant this right to IIS Server.
    2. AD properties for user "Account is sensitive and cannot be delegated"
    must be cleared in AD. By default, this one cleared so you dont have to do
    anything.
    3. Client must be using IE 5.5 or more (Lower versions dont support Kerberos
    so delegation fails).
    4. You need to register an SPN for SQL Server, for Kerberos to work each
    service must have an SPN registered by the domain admin. But the good thing
    is, if your SQL Server is running under LOCALSYSTEM account then you dont
    need to worry about this. Check SQL Books online for setting up an SPN if
    your SQL Server is running under a domain user. If its running under a local
    user account then Kerberos will never work, so you need to configure your
    SQL Server to run under either LOCALSYSTEM or a domain user account for
    Kerberos to work.
    5. On IIS server, make sure you have MDAC 2.6 or above. Lower versions of
    MDAC dont support Kerberos. If you are using Windows 2000 server on IIS
    Server, then you must be having MDAC 2.5 which might also be a reason for
    the failure.

    Please let me know if you still have any problems.

    Thanks,
    Bala.

    "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
    news:b4q4dn$fft27@kcweb01.netnews.att.com...
    > "Jacek Stelmaszczyk" <steq@polbox.com> wrote in message
    > news:b4prpn$1h0g$1@news2.ipartners.pl...
    > > "Tom Kaminski [MVP]" <tomk (A T) mvps (D O T) org> wrote:
    > > >
    > > > I don't believe you can use Windows Integrated authentication and have
    > SQL
    > > > on a separate machine. It creates a delegation issue as the IIS box
    > > doesn't
    > > > have the user's password to forward to the SQL box.
    > > > http://support.microsoft.com/default.aspx?scid=kb;EN-US;247931
    > >
    > > What about this article?
    > > INF: SQL Server 2000 Kerberos Support Including SQL Server Virtual
    Servers
    > > on Server Clusters
    > > http://support.microsoft.com/?kbid=319723
    >
    > I had not seen that. Looks like it's possible given the right
    > configuration.
    >
    > --
    > Tom Kaminski IIS MVP
    > http://mvp.support.microsoft.com/
    > http://www.microsoft.com/windowsserver2003/community/centers/iis/
    >
    >
    >


  • Next message: Bala Neerumalla[MSFT]: "Re: Windows Authentication - problem"

    Relevant Pages

    • Re: Using NT Authentication with Linked Server
      ... You are running into a double hop (or delegation) scenario. ... User trying to connect to SQL Server is not sensitive and can be ... how to register SPNs for your SQL Service account). ... Use sp_addlinkedsrvlogin on the first linked server (server B in your ...
      (microsoft.public.sqlserver.security)
    • Re: Troubleshoot Security Issues
      ... I forgot to mention that my IIS server hasn't been rebooted since ... so I guess the only thing left is delegation... ... > running under the Localsystem account. ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: Linked Server - Windows Authentication passthrough?
      ... > Is there any way to enable delegation on an NT 4 domain? ... >> server properties. ... >> Query Analyzer "Windows Authentication" to connect to the SQL Server to ... >> Bill Cheng ...
      (microsoft.public.sqlserver.security)
    • Re: Windows (Trusted) Authentication and SQL Server
      ... > The account whose credentials are being delegated must be a domain account ... > The computer on which the delegation takes place (e.g., the IIS server) ... > be marked in Active Directory as trusted for delegation. ... which makes the remote connection to SQL Server. ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: Linked Server
      ... SQL instance to be able to delegate on your behalf to the 2nd SQL Server ... [Create Linked Server Object on Middle Server] ... set up its login to use delegation. ...
      (microsoft.public.sqlserver.server)