Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8043369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:52:47+00:00 2026-06-05T04:52:47+00:00

We have security set up for an intranet site as follows through active directory.

  • 0

We have security set up for an intranet site as follows through active directory.

First we have security groups by department (sales, accounting, etc.)

Second we have an AD security group for the intranet site where people logon via NT challenge/response. For this purpose let’s call that group “Intranet Users”

Under Intranet Users, I’ve added the departments that are allowed to use the intranet.

So in AD you have Intranet Users and the members of the group are Sales and Accounting.

What I need to do in classic ASP is authenticate a user against the groups under Intranet Users.

I dug up some old code I used elsewhere but I can’t get it to work and unless my Google-fu of this topic is just terrible (a distinct possibility) I can’t find proper documentation of doing this in classic ASP.

This code will get the group but will only enumerate the objects within it if it’s a user, not a group.

bAuthUser = False
Set objGroup = GetObject("WinNT://DOMAIN/Intranet Users")
For Each objMember In objGroup.Members
    If objMember.Class = "User" Then
          If objMember.Name = Request.ServerVariables("AUTH_USER") Then bAuthUser = True
    End If
Next

The above code works if there is an actual user in the security group but there are no users in the group, just other security groups.

What I need to do is loop through the groups in “Intranet Users” then through the users in each group to authenticate.

Am I on the right track here or totally off?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T04:52:48+00:00Added an answer on June 5, 2026 at 4:52 am

    This depends on the functionality you are looking for.

    If the goal is “everyone can access this site, but if they are in Intranet Users, they get this extra functionality” then the path you are on is correct.

    If you just want to be able to say “Only Intranet Users can access my site” there’s an undocumented feature of IIS you can leverage. If you go into the folder security options, and remove the generic accounts from the ACL and add the Intranet Users group to the ACL, IIS will throw a 403 exception if the user authenticated is not in Intranet Users.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have a JUNIT test set up as such @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration({ /applicationContext.xml, /applicationContext-security.xml }) @TransactionConfiguration(defaultRollback
We have audit columns set by triggers. For obscure security reasons predating my tenure
Let's say I have 2 AD security groups: Access to SharePoint and Access to
I have my spring security set up to do basic authentication to a database
I have a custom security principal object which I set in the global.asax for
I have been requested to expose a web service for managing Active Directory Users
I have a intranet site with Windows Authentication. I have 'Administrator' pages in an
I am using BlazeDS and Spring Security and have set up my application using
I have a number of different roles in Sitecore. And I have set security
I have a WCF Service with a binding endpoint with security mode set to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.