Link to home
Start Free TrialLog in
Avatar of bondy666
bondy666Flag for United Kingdom of Great Britain and Northern Ireland

asked on

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

Avatar of Om Prakash
Om Prakash
Flag of India image

Go to tools, Internet Options --> Advance tab -->
uncheck - Show friendly HTTP erro messages
and see what the exact error is.
Avatar of bondy666

ASKER

Have already done that and I get exactly the same error.
ASKER CERTIFIED SOLUTION
Avatar of bondy666
bondy666
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.