Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restricting Access to Members of an AD Group

Status
Not open for further replies.

BillDoor

IS-IT--Management
Jun 28, 2004
112
GB
I'm building a small asp site to allow other members of staff to create advertisements in SMS2003, I've got that part sorted, but I need to restrict certain parts of the site to members of an AD group.

I can get the username via:
Code:
Set objADSysInfo = CreateObject("ADSystemInfo")
strUserName = objADsysInfo.UserName

But when it comes to the next part, to get the groups that the user is a member of, the script only works if it is run on the host server, on any other server it fails at this point:

Code:
Set ObjUser = GetObject("LDAP://" & strUserName)

Can anyone tell me what I'm doing wrong? Is there another way to work out if the user a member of a group?
 
If you have access to the IIS Admin tool then just change your app to disable anonymous access... then use the file system to set permissions on the folder and files where your web app lives.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top