Active Directory Credential in App.config for c# application?


This is my first time trying to connect an application to an Active Directory. I want to add a user to Active Directory from my C# console application, however I am getting an HResult=0x80070005 Access Denied error which I believe is because I need to pass in the Domain Admin credential. I am not quite sure where that would be added or if someone could point me to a resource to understand how to make this work.

asked on Stack Overflow Mar 1, 2021 by Danny

0 Answers

Nobody has answered this question yet.

User contributions licensed under CC BY-SA 3.0