Is it possible for IIS and SQL server on Separate Machines with integrated auth

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Is it possible for IIS and SQL server on Separate Machines with integrated auth

    Hi

    It is possible that IIS and SQL Server can reside on
    Seperate Machines and you can use Integrated Windows
    Authentication to connect.

    Ravikanth

    >-----Original Message-----
    >Is it possible for IIS and SQL server on Separate
    Machines
    >with integrated windows Authentication in ASP.NET?
    >
    >The IIS and SQL server are on sepatated machines. I want
    >to use the Integrated Windows Authentication. In IIS I
    >enable NTLM. In web.config, I have <authentication
    >mode="Windows" /> <identity impersonate="true"/>. But
    >still failed. The IIS pass through account
    >domainname/IIScomputername$ to SQL Server. But in the
    IIS
    >or in the domain, it doesn't have the such account.
    >
    >Then I search in Microsoft, found such article
    >[url]http://msdn.microsoft.com/library/default.asp?[/url]
    >url=/library/en-
    >us/vbcon/html/vbtskAccessingSQLServerUsingMappedWindowsDo
    ma
    >inUser.asp . It said the SQL server should be running on
    >the same computer as IIS. But I also found another
    article
    >[url]http://support.microsoft.com/default.aspx?scid=kb;EN-[/url]
    >US;176379. That's for asp. It said asp can do that. So
    I'm
    >just wondering is it possible also for ASP.NET?
    >
    >robert
    >
    >
    >.
    >
    Ravikanth[MVP] Guest

  2. Similar Questions and Discussions

    1. Can I install CFMX7 Standard on 2 separate machines?
      Can I install CFMX7 Standard on 2 separate machines? Or is it just one machine with 2 cpus in it? thanks!
    2. Why does flex not have its own integrated server?
      why don't you have the option for a integrated install like CF does? I know you do if you use the dev edition...but why not for the commerical...
    3. Installing CF MX and IIS 6.0 on separate machines
      I would like to use the one CF MX application server from multiple instances of IIS in our web farm. I see no documentation on this after looking...
    4. Client/server application and Windows Integrated Auth
      Hi, I have a .NET WinForms application that needs to identify the user and authenticate this against a datastore (could be Access, SQL Server, or...
    5. Single external signon with Integrated Auth apps and regular webs
      Hi, Well, after reading all of the posts in here, I'm still not quite sure if what I would like is possible. Here's my scenario: IIS5 (or 6 if...
  3. #2

    Default Is it possible for IIS and SQL server on Separate Machines with integrated auth

    hi, Ravikanth;

    Could you give me more info how to do that? I've tried. I
    set the IIS ->Directory Security -> Anonymous access and
    authentication control-> edit-> select "integrated windows
    authentication", no others. In web.config, <authentication
    mode="Windows" /> <identity impersonate="true"/>. In
    connection string,"integrated
    security=SSPI;Trusted_Connection=Yes; persist security
    info=False;" But still failed. The account from IIS send
    to SQL server as the login account
    is "domainname/IIScomputername$"

    So what the problem I've done? how to solve the problem?

    In msdn, [url]http://msdn.microsoft.com/library/default.asp?[/url]
    url=/library/en-
    us/vbcon/html/vbtskAccessingSQLServerUsingMappedWindowsDoma
    inUser.asp. it said, Integrated security requires: That
    SQL server be running on the same computer as IIS. Is that
    wrong?

    thanks
    robert
    >-----Original Message-----
    >Hi
    >
    >It is possible that IIS and SQL Server can reside on
    >Seperate Machines and you can use Integrated Windows
    >Authentication to connect.
    >
    >Ravikanth
    >
    >
    >>-----Original Message-----
    >>Is it possible for IIS and SQL server on Separate
    >Machines
    >>with integrated windows Authentication in ASP.NET?
    >>
    >>The IIS and SQL server are on sepatated machines. I want
    >>to use the Integrated Windows Authentication. In IIS I
    >>enable NTLM. In web.config, I have <authentication
    >>mode="Windows" /> <identity impersonate="true"/>. But
    >>still failed. The IIS pass through account
    >>domainname/IIScomputername$ to SQL Server. But in the
    >IIS
    >>or in the domain, it doesn't have the such account.
    >>
    >>Then I search in Microsoft, found such article
    >>[url]http://msdn.microsoft.com/library/default.asp?[/url]
    >>url=/library/en-
    >>us/vbcon/html/vbtskAccessingSQLServerUsingMappedWindowsDo
    >ma
    >>inUser.asp . It said the SQL server should be running on
    >>the same computer as IIS. But I also found another
    >article
    >>[url]http://support.microsoft.com/default.aspx?scid=kb;EN-[/url]
    >>US;176379. That's for asp. It said asp can do that. So
    >I'm
    >>just wondering is it possible also for ASP.NET?
    >>
    >>robert
    >>
    >>
    >>.
    >>
    >.
    >
    robert Guest

  4. #3

    Default Is it possible for IIS and SQL server on Separate Machines with integrated auth

    Robert,

    If you go through the steps in the following URLs you
    should get this set up no problem.

    [url]http://support.microsoft.com/default.aspx?scid=kb;en-[/url]
    us;319723

    [url]http://support.microsoft.com/default.aspx?scid=kb;en-[/url]
    us;810572

    Before going through all steps I would recommend that you
    check the following:

    Advanced option in IE of Enable Integrated Windows
    Authentication is selected.

    Using these articles enabled me to set up an environment
    connecting from Client A -> IIS Server -> SQL Cluster
    using integrated security and impersonation.

    Hope that helps

    Aidan Glendye
    >-----Original Message-----
    >hi, Ravikanth;
    >
    >Could you give me more info how to do that? I've tried. I
    >set the IIS ->Directory Security -> Anonymous access and
    >authentication control-> edit-> select "integrated
    windows
    >authentication", no others. In web.config,
    <authentication
    >mode="Windows" /> <identity impersonate="true"/>. In
    >connection string,"integrated
    >security=SSPI;Trusted_Connection=Yes; persist security
    >info=False;" But still failed. The account from IIS send
    >to SQL server as the login account
    >is "domainname/IIScomputername$"
    >
    >So what the problem I've done? how to solve the problem?
    >
    >In msdn, [url]http://msdn.microsoft.com/library/default.asp?[/url]
    >url=/library/en-
    >us/vbcon/html/vbtskAccessingSQLServerUsingMappedWindowsDom
    a
    >inUser.asp. it said, Integrated security requires: That
    >SQL server be running on the same computer as IIS. Is
    that
    >wrong?
    >
    >thanks
    >robert
    >>-----Original Message-----
    >>Hi
    >>
    >>It is possible that IIS and SQL Server can reside on
    >>Seperate Machines and you can use Integrated Windows
    >>Authentication to connect.
    >>
    >>Ravikanth
    >>
    >>
    >>>-----Original Message-----
    >>>Is it possible for IIS and SQL server on Separate
    >>Machines
    >>>with integrated windows Authentication in ASP.NET?
    >>>
    >>>The IIS and SQL server are on sepatated machines. I
    want
    >>>to use the Integrated Windows Authentication. In IIS I
    >>>enable NTLM. In web.config, I have <authentication
    >>>mode="Windows" /> <identity impersonate="true"/>. But
    >>>still failed. The IIS pass through account
    >>>domainname/IIScomputername$ to SQL Server. But in the
    >>IIS
    >>>or in the domain, it doesn't have the such account.
    >>>
    >>>Then I search in Microsoft, found such article
    >>>[url]http://msdn.microsoft.com/library/default.asp?[/url]
    >>>url=/library/en-
    >>>us/vbcon/html/vbtskAccessingSQLServerUsingMappedWindowsD
    o
    >>ma
    >>>inUser.asp . It said the SQL server should be running
    on
    >>>the same computer as IIS. But I also found another
    >>article
    >>>[url]http://support.microsoft.com/default.aspx?scid=kb;EN-[/url]
    >>>US;176379. That's for asp. It said asp can do that. So
    >>I'm
    >>>just wondering is it possible also for ASP.NET?
    >>>
    >>>robert
    >>>
    >>>
    >>>.
    >>>
    >>.
    >>
    >.
    >
    Aidan Glendye Guest

  5. #4

    Default Is it possible for IIS and SQL server on Separate Machines with integrated auth

    still doesn't work. Same error.

    any other suggestion?

    robert
    >-----Original Message-----
    >Robert,
    >
    >If you go through the steps in the following URLs you
    >should get this set up no problem.
    >
    >[url]http://support.microsoft.com/default.aspx?scid=kb;en-[/url]
    >us;319723
    >
    >[url]http://support.microsoft.com/default.aspx?scid=kb;en-[/url]
    >us;810572
    >
    >Before going through all steps I would recommend that you
    >check the following:
    >
    >Advanced option in IE of Enable Integrated Windows
    >Authentication is selected.
    >
    >Using these articles enabled me to set up an environment
    >connecting from Client A -> IIS Server -> SQL Cluster
    >using integrated security and impersonation.
    >
    >Hope that helps
    >
    >Aidan Glendye
    >
    >>-----Original Message-----
    >>hi, Ravikanth;
    >>
    >>Could you give me more info how to do that? I've tried.
    I
    >>set the IIS ->Directory Security -> Anonymous access and
    >>authentication control-> edit-> select "integrated
    >windows
    >>authentication", no others. In web.config,
    ><authentication
    >>mode="Windows" /> <identity impersonate="true"/>. In
    >>connection string,"integrated
    >>security=SSPI;Trusted_Connection=Yes; persist security
    >>info=False;" But still failed. The account from IIS send
    >>to SQL server as the login account
    >>is "domainname/IIScomputername$"
    >>
    >>So what the problem I've done? how to solve the problem?
    >>
    >>In msdn, [url]http://msdn.microsoft.com/library/default.asp?[/url]
    >>url=/library/en-
    >>us/vbcon/html/vbtskAccessingSQLServerUsingMappedWindowsDo
    m
    >a
    >>inUser.asp. it said, Integrated security requires: That
    >>SQL server be running on the same computer as IIS. Is
    >that
    >>wrong?
    >>
    >>thanks
    >>robert
    >>>-----Original Message-----
    >>>Hi
    >>>
    >>>It is possible that IIS and SQL Server can reside on
    >>>Seperate Machines and you can use Integrated Windows
    >>>Authentication to connect.
    >>>
    >>>Ravikanth
    >>>
    >>>
    >>>>-----Original Message-----
    >>>>Is it possible for IIS and SQL server on Separate
    >>>Machines
    >>>>with integrated windows Authentication in ASP.NET?
    >>>>
    >>>>The IIS and SQL server are on sepatated machines. I
    >want
    >>>>to use the Integrated Windows Authentication. In IIS I
    >>>>enable NTLM. In web.config, I have <authentication
    >>>>mode="Windows" /> <identity impersonate="true"/>. But
    >>>>still failed. The IIS pass through account
    >>>>domainname/IIScomputername$ to SQL Server. But in the
    >>>IIS
    >>>>or in the domain, it doesn't have the such account.
    >>>>
    >>>>Then I search in Microsoft, found such article
    >>>>[url]http://msdn.microsoft.com/library/default.asp?[/url]
    >>>>url=/library/en-
    >>>>us/vbcon/html/vbtskAccessingSQLServerUsingMappedWindows
    D
    >o
    >>>ma
    >>>>inUser.asp . It said the SQL server should be running
    >on
    >>>>the same computer as IIS. But I also found another
    >>>article
    >>>>[url]http://support.microsoft.com/default.aspx?scid=kb;EN-[/url]
    >>>>US;176379. That's for asp. It said asp can do that. So
    >>>I'm
    >>>>just wondering is it possible also for ASP.NET?
    >>>>
    >>>>robert
    >>>>
    >>>>
    >>>>.
    >>>>
    >>>.
    >>>
    >>.
    >>
    >.
    >
    robert Guest

  6. #5

    Default Re: Is it possible for IIS and SQL server on Separate Machines with integrated auth

    Hi Robert:

    WIth IIS and SQL on seperate machines, you'll need to go one step past
    "impersonation" and look at "delegation" via Kerberos. There is a good
    description of why your situation does not work and the steps you
    would need to take to use delegation in the following article (see the
    "Security" section):

    [url]http://www.databasejournal.com/features/mssql/print.php/2211161[/url]


    Delegation requires a specific network environment, and is also
    riskier from a security perspective, so you might want to consider the
    "Delegation Alternatives" in the .net docs:

    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsent7/html/vxconASPNETDelegation.asp[/url]


    On Thu, 31 Jul 2003 23:27:03 -0700, "robert"
    <robert.zheng@atfreeweb.com> wrote:
    >hi, Ravikanth;
    >
    >Could you give me more info how to do that? I've tried. I
    >set the IIS ->Directory Security -> Anonymous access and
    >authentication control-> edit-> select "integrated windows
    >authentication", no others. In web.config, <authentication
    >mode="Windows" /> <identity impersonate="true"/>. In
    >connection string,"integrated
    >security=SSPI;Trusted_Connection=Yes; persist security
    >info=False;" But still failed. The account from IIS send
    >to SQL server as the login account
    >is "domainname/IIScomputername$"
    >
    >So what the problem I've done? how to solve the problem?
    >
    --
    Scott
    Scott Allen Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139