Top "Directoryentry" questions

DirectoryEntry is a .Net class that encapsulates a node or object in the Active Directory Domain Services hierarchy.

Set Windows/AD password so that it "never expires"?

Here is my code: using (DirectoryEntry AD = new DirectoryEntry("WinNT://" + Environment.MachineName + ",computer")) { DirectoryEntry NewUser = AD.Children.Add(username, "user"); …

c# directoryentry
How do I query LDAP from C# to resolve Oracle TNS hostname while using managed ODP.NET?

Further to my previous Question, which I managed to answer myself with help from the Oracle forums, I now have …

c# oracle ldap directoryentry tnsnames
Get 2000 of 6000 records from DirectorySearcher

I have a code which either gets 1000 or all the results using DirectorySearcher. But I want to get only 2000 of 6000 …

c# asp.net active-directory directoryentry
Verify if password is correct

i need to verify if the password is correct for a user. i have this code: private bool checkOldPasswordValid(string …

c# asp.net active-directory passwords directoryentry
Reading ldap group member from c#

I have this code to connect to Active Directory and get all the groups that exist, it works and returns …

c# ldap directoryentry
LDAP Connecting with IP address and Port Number

The company I work for has a product that uses Active Directory to enable our product's security features using a …

c# active-directory ldap directoryentry directorysearcher
How to set AccountExpires in VB.NET via a AD DirectoryEntry

I needed to set the accountExpires property in the AD DirectoryEntry couldn't find a simple answer. Found some information; http://…

vb.net active-directory directoryentry
LDAP authentication on server

I need to authenticate LDAP user in c# with input username and password. DirectoryEntry entry = new DirectoryEntry("LDAP://" + ServerName + "/OU=…

c# ldap directoryservices directoryentry
System.IO.FileNotFoundException: The network path was not found. Exception while using DirectoryEntry object on windows 7

i am trying to connect to remote windows 7 machine by using DirectoryEntry object. here is my code DirectoryEntry obDirEntry = new …

c# .net directoryentry
How can I check if a user has write rights in Active Directory using C#?

In my .NET 2.0 C# applcation I need to determine if a user (with password) has ability to modify (write) option …

c# .net active-directory directoryentry