I’m currently working on a new departmental intranet and am after some advice.
Basically I’m after authenticating users via active directory groups to see if they can access / see a section of a page.
We have (as well as others) two groups that I will be starting off with: grpstudents and grpstaff. All students are a member of grpstudent and all staff are a member or grpstaff.
What I would like to do is code a asp if statement that states if the user is a member of grpstaff then they can see the section.
I have used in the past <% If (UCASE(Request.ServerVariables("AUTH_USER")) = "Domain\username") THEN> to authenticate access in the past, but as you can image if I was to write one of these for staff it would be huge and a nightmare to keep up to date. At least by using the group method, it will always be up to date without me having to do anything.
I will be expanding this to other groups, but want to get a ‘basic / easier’ one set up first so I understand it.
This is ASP coding by the way
