[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 265
  • Last Modified:

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

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
bondy666
Asked:
bondy666
  • 3
1 Solution
 
Om PrakashCommented:
Go to tools, Internet Options --> Advance tab -->
uncheck - Show friendly HTTP erro messages
and see what the exact error is.
0
 
bondy666Author Commented:
Have already done that and I get exactly the same error.
0
 
bondy666Author Commented:
Think I may have found the answer:
http://support.microsoft.com/kb/278836
0
 
bondy666Author Commented:
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

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now