Re: ASP.NET, Win2k, SQL 2k on an intranet (w/Kerberos?)
From: Matjaz Ladava (matjaz_at__nospam_ladava.com)
Date: 05/22/03
- Next message: Jonathan Folland: "Win2k3 as a Dev Machine - Can I stop all of the Security"
- Previous message: Mike Lerch: "Re: ASP.NET, Win2k, SQL 2k on an intranet (w/Kerberos?)"
- In reply to: Mike Lerch: "Re: ASP.NET, Win2k, SQL 2k on an intranet (w/Kerberos?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 22 May 2003 22:41:46 +0200
In your place I would go trough database and have mirrored accounts in SQL
server (in the form of domain\username). Next I would implement groups
table. After you done that, you can create views on SQL server to filter out
who can se what data.
Then there is also possibility with PrincipalPermision,......
I've seen systems, where security was done on table level (about 200
tables). It was total nightmare to administer.
Regards
Matjaz Ladava
"Mike Lerch" <mlerchNOSPAMTHANKS@nycap.rr.com> wrote in message
news:ha7qcvs63bo56rl33s329q0ib49k71d0ej@4ax.com...
> >Impersonation has a big drawback, and this is, that you loose connection
> >pooling on SQL server.
>
> That is an excellent point. A pretty big deal, too.
>
> >I would in your case, leave windows authentication,
> >but avoid impersonation. This way your application would act on behalf of
> >ASPNET account. Grant ASPNET account logon rights to SQL server and limit
it
> >just to one database. Next, for security purposes, program all DB access
> >trough stored procedures and give ASPNET account just execute permission
on
> >stored procedures. In this way you would get security, because what
ASPNET
> >account does is limited to stored procedures and secondly you get
> >performance, because SP's are faster.
>
> That's pretty much what's advocated in the top of that Intranet
> Security document. Later on they do talk about the Kererbos (I was
> mistaken when I implied that that document didn't talk about that
> technique) in a section called "Flowing the Original Caller to the
> Database."
>
> The thing I don't like about making the ASPNET account just have
> execute permission instead of the users is that some of the pages are
> doing to require the users to enter data that will be stored in the
> database. Other pages will report on information from a very large
> pool of data, but filter it according to the user's identity (i.e. an
> Eastern Sales Manager will see his stuff, a Western Sales Manager will
> see her stuff).
>
> Maybe I could combine those: have IIS validate the user using Windows
> Authentication, have the ASP.NET process acount hit the database, and
> use IPrinciple to pass the user's name as a parameter to the database
> instead of impersonation. Hmm.
>
> Lerch
- Next message: Jonathan Folland: "Win2k3 as a Dev Machine - Can I stop all of the Security"
- Previous message: Mike Lerch: "Re: ASP.NET, Win2k, SQL 2k on an intranet (w/Kerberos?)"
- In reply to: Mike Lerch: "Re: ASP.NET, Win2k, SQL 2k on an intranet (w/Kerberos?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|