We need to read/update AD information from SharePoint. When creating a new DirectoryEntry instance, we have to use the overload which requires a username and password to read and update. This works fine.
What we would really need is to use the signed on user to query /update AD. When we use a DirectoryEntry instance without passing username and password an exception is thrown.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!