Windows Authorization Question

D

dw

I'm a newbie with ASP.NET 1.1. I'm building an application which will allow
only 5 or 6 people access (authentication) and they're all on the domain;
and only 2 or 3 will have write permission to the SQL Server 2000 on the
pages (authorization). What's the best way to do this (least amount of
maintenance if users get added/removed)? Thanks.
 
Y

Yunus Emre ALPÖZEN [MCAD.NET]

use windows authentication. U can define your users and roles in web.config
file in your case it should be enough...
 
D

dw

Thanks, Yunus. How do I allow some users to full edit of data, while others
only view info on pages?
 
Y

Yunus Emre ALPÖZEN [MCAD.NET]

U should define users with roles. And use declarative or imperative security
checks.

For instance

System.Threading.Thread.CurrentPrincipal.IsInRole("Admin") returns boolean
indicating whether the current user belongs to admin group. Admin is not a
specific word u can easily define it. My advice u to google Role Based
Security. There are too much code examples in the net.

--

Thanks,
Yunus Emre ALPÖZEN
BSc, MCAD.NET
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top