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

  1. #1

    Default Utter madness!


    I think i've been getting my groups mixed up.

    I've been trying to get my intranet system to authenticate to SQL server
    (2K) using a trusted connection for some time and have had to wait until we
    upgraded to Active directory for kerberos to start working (I'm not 100%
    sure it's kerberos so bear with me).

    Now I've hit the final brick wall which means this isn't ever gonna happen
    in the current setup. It finally twigged (dropped like a tonne of lead more
    like) when I read in the help :

    "If your application runs on a Windows-based intranet, you might be able to
    use Windows integrated security for database access. Integrated security
    requires:
    a.. That SQL Server be running on the same computer as IIS...... "
    I can't believe that someone from MS actually wrote this. Are they
    mad?...IIS and SQL server on the same machine....hackers paradise! Appart
    from being plain dangerous, it's bad networking practice, bad programming
    practice...it's just bad.

    Does anyone know if they are actually going to write something useful...or
    are we stuck with forms authentication forever!?! Not that I'm complaining.

    Cheers...P



    Paul Mason Guest

  2. Similar Questions and Discussions

    1. autostretch madness
      so ive been using DW fora few years and all of a suddenive come across this madness wheni started using DW04, autostretch on the height (100%) code ...
    2. Array MADNESS
      Have I gone crazy? <cfscript> arr=arrayNew(2); arr = 'Col 1 Row 1'; arr = 'Col 1 Row 2'; arr = 'Col 2 Row 1'; arr = 'Col 2 Row 2'; arr = 'Col...
    3. Madness, I call it madness
      Maybe it's me who is mad but... I have a windows application with a datagrid. On pressing F5 (when the grid or any grid's cell has a focus) I...
    4. addcamera madness!
      can someone please please explain to me why this gives an "object in handler not found "error when i try and run it with the add camera command...
    5. flv -&gt; swf madness
      i've created a flv from a quicktime movie and exported it out as a swf then i load that swf into a movieclip and everything works fine except that...
  3. #2

    Default Re: Utter madness!

    Lots of people run SQL on other boxes. There is no reason why you can't do
    this. However, certain authentication scenarios are harder in that set up.

    The issue of passing Windows credentials to SQL server can get tricky if it
    is on a different box on the network. If it is your expectation that you
    will log on to SQL using web logged on user's credentials and you are using
    Windows Integrated Authentication, then you will need to learn some stuff
    about Kerberos delegation to make this work. This is discussed ad nauseum
    in this group and you will find many pointers here with a Google search.

    However, there are many reasons why you would not want to use the user's
    credentials to connect to SQL but instead would want to use some kind of
    service account. One of the primary reasons is that you'll get better
    scalability if you use one set of credentials as you can use connection
    pooling. Another reason is that you can avoid the whole Kerberos delegation
    thing that way. To do the service account approach, you have three typical
    approaches: change the process account for ASP.NET to a domain account,
    impersonate a specific domain account or put your data access code in a COM+
    component and configure it to use a specific domain identity via COM+. All
    have good points and bad points.

    Joe K.

    "Paul Mason" <masonp@cancer.bham.ac.uk> wrote in message
    news:eNB9QkaaEHA.3512@TK2MSFTNGP12.phx.gbl...
    >
    > I think i've been getting my groups mixed up.
    >
    > I've been trying to get my intranet system to authenticate to SQL server
    > (2K) using a trusted connection for some time and have had to wait until
    we
    > upgraded to Active directory for kerberos to start working (I'm not 100%
    > sure it's kerberos so bear with me).
    >
    > Now I've hit the final brick wall which means this isn't ever gonna happen
    > in the current setup. It finally twigged (dropped like a tonne of lead
    more
    > like) when I read in the help :
    >
    > "If your application runs on a Windows-based intranet, you might be able
    to
    > use Windows integrated security for database access. Integrated security
    > requires:
    > a.. That SQL Server be running on the same computer as IIS...... "
    > I can't believe that someone from MS actually wrote this. Are they
    > mad?...IIS and SQL server on the same machine....hackers paradise! Appart
    > from being plain dangerous, it's bad networking practice, bad programming
    > practice...it's just bad.
    >
    > Does anyone know if they are actually going to write something useful...or
    > are we stuck with forms authentication forever!?! Not that I'm
    complaining.
    >
    > Cheers...P
    >
    >
    >

    Joe Kaplan \(MVP - ADSI\) Guest

  4. #3

    Default Re: Utter madness!

    Where did you get that?, it is hilarious! Do you have a link?

    Of course you can use integrated windows authentiction when IIS/sql server are on different computers, you must enable delegation on your webserver for this to work properly though.

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

    "Paul Mason" <masonp@cancer.bham.ac.uk> wrote in message news:eNB9QkaaEHA.3512@TK2MSFTNGP12.phx.gbl...
    >
    > I think i've been getting my groups mixed up.
    >
    > I've been trying to get my intranet system to authenticate to SQL server
    > (2K) using a trusted connection for some time and have had to wait until we
    > upgraded to Active directory for kerberos to start working (I'm not 100%
    > sure it's kerberos so bear with me).
    >
    > Now I've hit the final brick wall which means this isn't ever gonna happen
    > in the current setup. It finally twigged (dropped like a tonne of lead more
    > like) when I read in the help :
    >
    > "If your application runs on a Windows-based intranet, you might be able to
    > use Windows integrated security for database access. Integrated security
    > requires:
    > a.. That SQL Server be running on the same computer as IIS...... "
    > I can't believe that someone from MS actually wrote this. Are they
    > mad?...IIS and SQL server on the same machine....hackers paradise! Appart
    > from being plain dangerous, it's bad networking practice, bad programming
    > practice...it's just bad.
    >
    > Does anyone know if they are actually going to write something useful...or
    > are we stuck with forms authentication forever!?! Not that I'm complaining.
    >
    > Cheers...P
    >
    >
    >
    Raterus Guest

  5. #4

    Default Re: Utter madness!


    Hi Joe,

    I tried using impersonation in one application and for the amount of
    connections we generate (300 max) it created a lot of extra work. I'll
    stick to forms authentication for now.

    I do find it odd that it's so easy to identify a domain authenticated user
    (through the WindowsIdentity object) and yet it's so difficult for it to
    then pass this onto SQL server.

    If it's going to be "tricky" to get a trusted connection to my SQL box
    working without having IIS installed on the same box, then it's not worth
    doing. Most people need something that's straightforward and reliable.

    I will have a root around, but if it requires the level of in-depth
    knowledge of an obscure technology that you're hinting at then I doubt I'll
    take it any further...

    Cheers...P

    "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    in message news:u5$mm8aaEHA.384@TK2MSFTNGP10.phx.gbl...
    > Lots of people run SQL on other boxes. There is no reason why you can't
    do
    > this. However, certain authentication scenarios are harder in that set
    up.
    >
    > The issue of passing Windows credentials to SQL server can get tricky if
    it
    > is on a different box on the network. If it is your expectation that you
    > will log on to SQL using web logged on user's credentials and you are
    using
    > Windows Integrated Authentication, then you will need to learn some stuff
    > about Kerberos delegation to make this work. This is discussed ad nauseum
    > in this group and you will find many pointers here with a Google search.
    >
    > However, there are many reasons why you would not want to use the user's
    > credentials to connect to SQL but instead would want to use some kind of
    > service account. One of the primary reasons is that you'll get better
    > scalability if you use one set of credentials as you can use connection
    > pooling. Another reason is that you can avoid the whole Kerberos
    delegation
    > thing that way. To do the service account approach, you have three
    typical
    > approaches: change the process account for ASP.NET to a domain account,
    > impersonate a specific domain account or put your data access code in a
    COM+
    > component and configure it to use a specific domain identity via COM+.
    All
    > have good points and bad points.
    >
    > Joe K.
    >
    > "Paul Mason" <masonp@cancer.bham.ac.uk> wrote in message
    > news:eNB9QkaaEHA.3512@TK2MSFTNGP12.phx.gbl...
    > >
    > > I think i've been getting my groups mixed up.
    > >
    > > I've been trying to get my intranet system to authenticate to SQL server
    > > (2K) using a trusted connection for some time and have had to wait until
    > we
    > > upgraded to Active directory for kerberos to start working (I'm not 100%
    > > sure it's kerberos so bear with me).
    > >
    > > Now I've hit the final brick wall which means this isn't ever gonna
    happen
    > > in the current setup. It finally twigged (dropped like a tonne of lead
    > more
    > > like) when I read in the help :
    > >
    > > "If your application runs on a Windows-based intranet, you might be able
    > to
    > > use Windows integrated security for database access. Integrated security
    > > requires:
    > > a.. That SQL Server be running on the same computer as IIS...... "
    > > I can't believe that someone from MS actually wrote this. Are they
    > > mad?...IIS and SQL server on the same machine....hackers paradise!
    Appart
    > > from being plain dangerous, it's bad networking practice, bad
    programming
    > > practice...it's just bad.
    > >
    > > Does anyone know if they are actually going to write something
    useful...or
    > > are we stuck with forms authentication forever!?! Not that I'm
    > complaining.
    > >
    > > Cheers...P
    > >
    > >
    > >
    >
    >

    Paul Mason Guest

  6. #5

    Default Re: Utter madness!

    It is just Windows security stuff. Whether or not it is obscure is
    debatable, but it sure helps to understand this stuff. Keith Brown has a
    great online book at [url]www.pluralsight.com[/url] called Windows Security for .NET
    Developers that tells you what you need to know.

    You can get a trusted connection back to SQL server. Just change your
    ASP.NET account (either processModel or app pool identity depending on
    version of IIS) to a domain account and make sure you have impersonation
    disabled. Then you are using SSPI to connect to SQL with a specific
    account.

    If the requirement is to use WIA and have those credentials be used to
    authenticate with SQL server on a different box on the network, then
    Kerberos delegation is required. This is enabled either per machine or per
    user in Active Directory. Like I said, I'd avoid using this approach unless
    you absolutely need to because you are using specific per user security
    features in SQL Server as it hurts scalability and makes your life much more
    complicated.

    Joe K.

    "Paul Mason" <masonp@cancer.bham.ac.uk> wrote in message
    news:eoBinFbaEHA.2576@TK2MSFTNGP10.phx.gbl...
    >
    > Hi Joe,
    >
    > I tried using impersonation in one application and for the amount of
    > connections we generate (300 max) it created a lot of extra work. I'll
    > stick to forms authentication for now.
    >
    > I do find it odd that it's so easy to identify a domain authenticated user
    > (through the WindowsIdentity object) and yet it's so difficult for it to
    > then pass this onto SQL server.
    >
    > If it's going to be "tricky" to get a trusted connection to my SQL box
    > working without having IIS installed on the same box, then it's not worth
    > doing. Most people need something that's straightforward and reliable.
    >
    > I will have a root around, but if it requires the level of in-depth
    > knowledge of an obscure technology that you're hinting at then I doubt
    I'll
    > take it any further...
    >
    > Cheers...P
    >
    > "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    > in message news:u5$mm8aaEHA.384@TK2MSFTNGP10.phx.gbl...
    > > Lots of people run SQL on other boxes. There is no reason why you can't
    > do
    > > this. However, certain authentication scenarios are harder in that set
    > up.
    > >
    > > The issue of passing Windows credentials to SQL server can get tricky if
    > it
    > > is on a different box on the network. If it is your expectation that
    you
    > > will log on to SQL using web logged on user's credentials and you are
    > using
    > > Windows Integrated Authentication, then you will need to learn some
    stuff
    > > about Kerberos delegation to make this work. This is discussed ad
    nauseum
    > > in this group and you will find many pointers here with a Google search.
    > >
    > > However, there are many reasons why you would not want to use the user's
    > > credentials to connect to SQL but instead would want to use some kind of
    > > service account. One of the primary reasons is that you'll get better
    > > scalability if you use one set of credentials as you can use connection
    > > pooling. Another reason is that you can avoid the whole Kerberos
    > delegation
    > > thing that way. To do the service account approach, you have three
    > typical
    > > approaches: change the process account for ASP.NET to a domain account,
    > > impersonate a specific domain account or put your data access code in a
    > COM+
    > > component and configure it to use a specific domain identity via COM+.
    > All
    > > have good points and bad points.
    > >
    > > Joe K.
    > >
    > > "Paul Mason" <masonp@cancer.bham.ac.uk> wrote in message
    > > news:eNB9QkaaEHA.3512@TK2MSFTNGP12.phx.gbl...
    > > >
    > > > I think i've been getting my groups mixed up.
    > > >
    > > > I've been trying to get my intranet system to authenticate to SQL
    server
    > > > (2K) using a trusted connection for some time and have had to wait
    until
    > > we
    > > > upgraded to Active directory for kerberos to start working (I'm not
    100%
    > > > sure it's kerberos so bear with me).
    > > >
    > > > Now I've hit the final brick wall which means this isn't ever gonna
    > happen
    > > > in the current setup. It finally twigged (dropped like a tonne of
    lead
    > > more
    > > > like) when I read in the help :
    > > >
    > > > "If your application runs on a Windows-based intranet, you might be
    able
    > > to
    > > > use Windows integrated security for database access. Integrated
    security
    > > > requires:
    > > > a.. That SQL Server be running on the same computer as IIS...... "
    > > > I can't believe that someone from MS actually wrote this. Are they
    > > > mad?...IIS and SQL server on the same machine....hackers paradise!
    > Appart
    > > > from being plain dangerous, it's bad networking practice, bad
    > programming
    > > > practice...it's just bad.
    > > >
    > > > Does anyone know if they are actually going to write something
    > useful...or
    > > > are we stuck with forms authentication forever!?! Not that I'm
    > > complaining.
    > > >
    > > > Cheers...P
    > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Joe Kaplan \(MVP - ADSI\) Guest

  7. #6

    Default Re: Utter madness!


    Hi,

    It is, isn't it. The link is
    ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/vbcon/html/vbtskAccessingSQLS
    erverUsingWindowsIntegratedSecurity.htm

    Alternativelly go into Visual Studio help, then Contents, Visual Studio
    ..net, Visual basic and C#, Creating applications, Creating web applications
    and services, Security considerations...., Accessing SQL server from a web
    appliaction and finally Accessing SQL server using windows integrated
    security.

    That's VS1.1 by the way.

    Thanks for the link. I'd done everything but the last two items covering
    setting up Active directory.

    Cheers...P


    "Raterus" <raterus@spam.org> wrote in message
    news:O2NWS%23aaEHA.2908@TK2MSFTNGP10.phx.gbl...
    Where did you get that?, it is hilarious! Do you have a link?

    Of course you can use integrated windows authentiction when IIS/sql server
    are on different computers, you must enable delegation on your webserver for
    this to work properly though.

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

    "Paul Mason" <masonp@cancer.bham.ac.uk> wrote in message
    news:eNB9QkaaEHA.3512@TK2MSFTNGP12.phx.gbl...
    >
    > I think i've been getting my groups mixed up.
    >
    > I've been trying to get my intranet system to authenticate to SQL server
    > (2K) using a trusted connection for some time and have had to wait until
    we
    > upgraded to Active directory for kerberos to start working (I'm not 100%
    > sure it's kerberos so bear with me).
    >
    > Now I've hit the final brick wall which means this isn't ever gonna happen
    > in the current setup. It finally twigged (dropped like a tonne of lead
    more
    > like) when I read in the help :
    >
    > "If your application runs on a Windows-based intranet, you might be able
    to
    > use Windows integrated security for database access. Integrated security
    > requires:
    > a.. That SQL Server be running on the same computer as IIS...... "
    > I can't believe that someone from MS actually wrote this. Are they
    > mad?...IIS and SQL server on the same machine....hackers paradise! Appart
    > from being plain dangerous, it's bad networking practice, bad programming
    > practice...it's just bad.
    >
    > Does anyone know if they are actually going to write something useful...or
    > are we stuck with forms authentication forever!?! Not that I'm
    complaining.
    >
    > Cheers...P
    >
    >
    >

    Paul Mason 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