How to SELECT records based upon ASP.NET Roles



I am new to ASP.NET and need to develop an application that archives /
retrieves documents. When the document is stored, the user specifies the
document permissions ( public or limited to a specific role/class of users
..) This means that when a person in Customer Service does a search, they
aren't able to retrieve company payroll reports archived by the Finance
department.

The solution will be implemented in a site setup with NT Authentication via
a local domain that the IIS 6.0 server is a member of. The data store will
be SQL Server Express 2005 initially.

I understand that ASP.NET supports Role based security. Presently however,
it appears that ASP.NET runs under a single NT Service account.

If I attempt to use the SYSTEM_USER() or similar SQL function, will it
return the current ASP.NET authenticated browser user or the security info
for the .NET service account?

Assuming I store a role / group id with each record, is there a way to
construct a WHERE clause in a SELECT statement that identifies the Roles of
the current ASP.NET authenticated user without having to dynamically build
the SQL statement?

Thanks,
Bob



.



Relevant Pages

  • Re: z/OS Mainframe - SFTP - Disable Publickey Authentication and only use Password?
    ... z/OS Mainframe - SFTP - Disable Publickey Authentication and only use Password? ... The external site does not require any Authentication. ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ... Search the archives at http://bama.ua.edu/archives/ibm-main.html ...
    (bit.listserv.ibm-main)
  • RE: MSSQL Column Names
    ... Is there a way to search the archives? ... I usually do this (SQL): ... in python would be something like this: ... anti-virus service working around the clock, around the globe, visit: ...
    (comp.lang.python)
  • Re: [SLE] Visual Database designer (SQL)
    ... > Is there a graphical database designer that can export the sql ... Available in the archives. ... Please read the FAQs: suse-linux-e-faq@suse.com ...
    (SuSE)
  • Re: Count instaces of charcter in field
    ... I there anyway I can can do this in a query using sql? ... Here are a couple of postings from the archives that use the standard ...
    (microsoft.public.access.queries)
  • [SLE] Visual Database designer (SQL)
    ... Is there a graphical database designer that can export the sql available? ... Also check the archives at http://lists.suse.com ... Please read the FAQs: suse-linux-e-faq@suse.com ...
    (SuSE)