bondy666
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
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
ASKER
Have already done that and I get exactly the same error.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
uncheck - Show friendly HTTP erro messages
and see what the exact error is.