Minimum permission for the Username to be able to connect to active directory using DirectoryEntry
john john
956
Reputation points
We are connecting to Active Directory using this code, inside our ASP.NET MVC-5:-
string ADusername = System.Web.Configuration.WebConfigurationManager.AppSettings["ADUserName"];
string ADpassword = System.Web.Configuration.WebConfigurationManager.AppSettings["ADPassword"];
using (var context = new DirectoryEntry("LDAP://mydomain.com:389/DC=mydomain,DC=com", ADusername, ADpassword))
now at the beginning the thought that username/password we are specifying inside the DirectoryEntry
should be a active directory admin, to be able to get the users' info, but if i try to pass a non-admin user i am able to get all the users' info as well.. so my question is; What is the minimum permission for the Username to be able to connect to active directory using DirectoryEntry ?
Thanks
Sign in to answer