Solved

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

Posted on 2011-03-01
4
259 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Adware on IIS hosted asp.net website 1 31
edit .asp files 5 31
Obtain data from database .mdb 4 19
Button function on table is in trouble 3 20
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

839 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