Solved

Display group membership function won't work in client-side ASP

Posted on 2011-03-01
4
258 Views
Last Modified: 2012-05-11
Hi
I have a simple function which displays a list of members (below). This works fine if I use 'browse' from within IIS7 but I can't get it to work when I'm accessing the link which calls it from a client machine. Instead I get a very generic:
'500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.'

I'm sure there is probably something simple I've not turned on or installed but it's driving me crazy. I have 'Windows Authentication' installed in IIS.
I should point out that 'group' takes the form of LDAP://CN=blah,dc=blah, etc. As I said the function works fine on the server so I suspect some sort of authentication issue.
Thanks
Function listmembers(group)

Set objGroup = GetObject (group)
objGroup.getInfo
arrMemberOf = objGroup.GetEx("member")
For Each strMember in arrMemberOf
	Set user = GetObject("LDAP://" & strMember)
	response.write Replace(user.name,"CN=",vbNullString) & "<br />" 

Next
End Function

Open in new window

0
Comment
Question by:bondy666
  • 3
4 Comments
 
LVL 22

Expert Comment

by:Om Prakash
ID: 35006767
Go to tools, Internet Options --> Advance tab -->
uncheck - Show friendly HTTP erro messages
and see what the exact error is.
0
 

Author Comment

by:bondy666
ID: 35006937
Have already done that and I get exactly the same error.
0
 

Accepted Solution

by:
bondy666 earned 0 total points
ID: 35007141
Think I may have found the answer:
http://support.microsoft.com/kb/278836
0
 

Author Closing Comment

by:bondy666
ID: 35067720
I also needed to relax security in IIS so basic authentication was used. This could be a problem down the line unless I use it with SSL but this isn't an immediate issue.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question