Web Development Thread, Show webpage based on group membership in Coding and Web Development; OK so this should be fun as I have no ASP knowledge, but am willing to start picking it up ...
30th March 2009, 09:46 AM #1
Show webpage based on group membership
OK so this should be fun as I have no ASP knowledge, but am willing to start picking it up as I go.
For our remote webfolders webpage (RM Easylink), I want to be able to display a page based on a users AD membership. So staff will see the staff shared folder, students see the students, etc.
I've looked through a couple of help pages but cannot find anything definitive.
All I want is a main page, with a login link. When you enter your details, it checks against AD and if you are in the student group, you get student.asp page, if you are in staff, you get staff.asp....each with different webfolder mappings.
Is this possible?
9th April 2009, 12:53 PM #2
- Rep Power
In IIS turn on Windows Integrated Authentication (this will mean the user will noe even need ot log on using username/password unless they are accessing it from a non-domain machine - eg from outside network)
add this line to the system.web section of your web.config
put the following (rough - it may need refined) code in the Page_Load of your default.aspx:
If User.IsInRole("Staff") then
else od User.IsInRole("Students") then
For additonal securoty create a web.config in you staff folder and add the following code to it which will ensure students still cant view enve by entering a direct url
<allow roles="DomainName\Staff" />
<deny users="*" />
above assumes all staff accounts are ina group called staff and all student accounts are in a student group
By MattGibson in forum Windows
Last Post: 17th November 2008, 03:15 PM
By FN-GM in forum Scripts
Last Post: 7th May 2008, 03:00 PM
By Pottsey in forum EduGeek.net Site Problems
Last Post: 27th February 2008, 03:10 PM
By Ravening_Wolf in forum Wireless Networks
Last Post: 11th December 2006, 02:48 PM
By ICTNUT in forum Windows
Last Post: 2nd December 2005, 04:19 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)