Solved

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

Posted on 2011-03-01
4
261 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Get Actionable Data from Your Monitoring Solution

Your communication platform is only as good as the relevance of the information you send. Ensure your alerts get to the right people every time with actionable responses. Create escalation rules that ensure everyone follows the process and nothing is left to chance.

Question has a verified solution.

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

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

696 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