Wrox Programmer Forums
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 1st, 2007, 05:49 AM
Registered User
Join Date: Dec 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default get user groups from Active Directory

Hello all,

I seem to have a permissions problem, while trying to access the groups that a user belongs to, through Active Directory. The error message i get is this:

Permission denied: 'GetObject'
/usr_requests/Admin/includes/clsActiveDirectory.asp, line 120

This line contains the code below:

Set User = GetObject("WinNT://" & strDomain & "/" & strUser & ",user")

This error is reproduced when i try to access the page from any other computer than mine, which is the one that IIS(5.1) runs on. I 've put the Application Proccess to Low, the IIS services run under Network Administrator account and i have integrated security checked..

Can anyone help me with this one or give me some guidelines on where to serach for a solution ;;

thanks in advance

Kostas Lagos
Old February 6th, 2007, 08:09 PM
Friend of Wrox
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41

There seems to be a lack of interest in AD related posts. Myn can be seen at:


The second cut n paste code example may be useful to you. I am learning using trial and error myself, would you mind sharing your code?


Wind is your friend

Similar Threads
Thread Thread Starter Forum Replies Last Post
Searching for a user in Active Directory with ASP Ricapar Classic ASP Professional 1 July 15th, 2008 11:07 PM
Active Directory - groups and permissions shanson ASP.NET 2.0 Basics 2 May 17th, 2006 03:20 PM
Add User to group - Active Directory anurag_ur .NET Framework 1.x 0 January 16th, 2006 09:15 AM
Add User to group - Active Directory anurag_ur C# 0 January 16th, 2006 09:13 AM
Active Directory - Creating Groups r_ganesh76 ASP.NET 1.0 and 1.1 Professional 1 October 4th, 2004 06:43 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.