I have a program that is using system.directoryservices
and the directorysearcher
.
On 2003 R2 this works as any user account, and only lists what they have rights to see. On 2008 R2, however, it only works as a user that is an administrator of the local server, not as normal user accounts.
The error I am getting is
0x80070035 "The specified network path was not found"
when trying to create a searchresultcollection
.
The first part that appears to be failing is at
system.directoryservices.directoryentry.bind(boolean throwIfFail)
but it works when I am logged in as myself with administrative credentials.
Any thoughts?