Landpy.ActiveDirectory 1.0.0.4

dotnet add package Landpy.ActiveDirectory --version 1.0.0.4                
NuGet\Install-Package Landpy.ActiveDirectory -Version 1.0.0.4                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Landpy.ActiveDirectory" Version="1.0.0.4" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Landpy.ActiveDirectory --version 1.0.0.4                
#r "nuget: Landpy.ActiveDirectory, 1.0.0.4"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Landpy.ActiveDirectory as a Cake Addin
#addin nuget:?package=Landpy.ActiveDirectory&version=1.0.0.4

// Install Landpy.ActiveDirectory as a Cake Tool
#tool nuget:?package=Landpy.ActiveDirectory&version=1.0.0.4                

Operate the Active Directory object with Active Record pattern, forget hundreds of the AD attribute names and AD attribute const values, forget all the details of the Active Directory and enjoy your self.
And you can also use the code to generate the filter to get the AD object search result, all the code is clear and simple.

Product Compatible and additional computed target framework versions.
.NET Framework net20 is compatible.  net35 was computed.  net40 was computed.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0.4 426 12/13/2014
1.0.0.3 192 11/26/2013
1.0.0.2 53 11/20/2013
1.0.0.1 54 11/5/2013
1.0.0 52 11/5/2013

Landpy Active Directory Library with Active Record pattern!

Eg: Update a user AD object.
using (var userObject = UserObject.FindOneByCN(this.ADOperator, “pangxiaoliang”))
{
    if(userObject.Email == "example@landpy.com")
    {
         userObject.Email = "mv@live.cn";
         userObject.Save();
    }
}


Eg: Query user AD objects.
// 1. CN end with "liu", Mail conatains "live" (Eg: mv@live.cn), job title is "Dev" and AD object type is user.
// 2. CN start with "pang", Mail conatains "live" (Eg: mv@live.cn), job title is "Dev" and AD object type is user.
           IFilter filter =
               new And(
                   new IsUser(),
                   new Contains(PersonAttributeNames.Mail, "live"),
                   new Is(PersonAttributeNames.Title, "Dev"),
                   new Or(
                           new StartWith(AttributeNames.CN, "pang"),
                           new EndWith(AttributeNames.CN, "liu")
                       )
                   );
// Output the user object display name.
foreach (var userObject in UserObject.FindAll(this.ADOperator, filter))
{
   using (userObject)
   {
       Console.WriteLine(userObject.DisplayName);
   }
}


Eg: Custom query.
IFilter filter =
   new And(
       new IsUser(),
       new Custom("(!userAccountControl:1.2.840.113556.1.4.803:=2)")
       );
// Output the user object display name.
foreach (var userObject in UserObject.FindAll(this.ADOperator, filter))
{
   using (userObject)
   {
       Console.WriteLine(userObject.DisplayName);
   }
}


Note: For more information and the getting start please visit the link https://landpyactivedirectory.codeplex.com/documentation