+ Post New Thread
Results 1 to 2 of 2
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 ...
  1. #1

    MK-2's Avatar
    Join Date
    Oct 2006
    Thank Post
    Thanked 581 Times in 307 Posts
    Blog Entries
    Rep Power

    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?

  2. #2

    Join Date
    Nov 2008
    Thank Post
    Thanked 4 Times in 4 Posts
    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
    <authentication mode="Windows"/>

    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
    end if

    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

+ Post New Thread

Similar Threads

  1. Exchange 2003 - Query Based Distribution Group
    By MattGibson in forum Windows
    Replies: 0
    Last Post: 17th November 2008, 03:15 PM
  2. Replies: 8
    Last Post: 7th May 2008, 03:00 PM
  3. [CLOSED] Layout Issue: Main webpage not resizing based on screen resolution
    By Pottsey in forum EduGeek.net Site Problems
    Replies: 6
    Last Post: 27th February 2008, 03:10 PM
  4. ISA 2004 - Upstream proxy based on user group?
    By Ravening_Wolf in forum Wireless Networks
    Replies: 0
    Last Post: 11th December 2006, 02:48 PM
  5. Group Membership Woes (Need Help)
    By ICTNUT in forum Windows
    Replies: 11
    Last Post: 2nd December 2005, 04:19 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts