Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

ASP.NET 2.0 Role provider question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Derrick - 27 Jul 2007 15:13 GMT
Morning,

I am using the built in asp.net role/user/membership, etc.  Have that all
working.

We have some internal users, and a bunch of external users.

Is there any way to remove roles at run time, per request, based on the ip
of the request?  What I want to do is remove all the "admin" type roles for
internet based users, only allow certain roles to apply if the request comes
from our intranet.

If there isn't an "easy" way to do this, I guess I would have to get the
role provider source and modify it myself?

Thanks in advance!

Derrick
Cowboy (Gregory A. Beamer) - 27 Jul 2007 17:21 GMT
You can create your own custom role provider that allows this
programatically.

If it is a matter of removing roles from a certain site, you can do that by
making it so the roles in question are denied access in web.config. Won't
stop a login, but it will prevent them from doing anything on the site when
logged in. This will not work, of course, if both sets are hitting the same
exact site.

Signature

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)

************************************************
Think outside the box!
************************************************

> Morning,
>
[quoted text clipped - 14 lines]
>
> Derrick

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.