Project Description
Active Directory Object Model Library, which will help you to operate AD easily!
This lib will bring you to the AD Active Record Parttern world, enjoy it now!

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.
More over: With the using code block you will dispose the no management resource easily.
Note: For more information and the getting start please visit the link https://landpyactivedirectory.codeplex.com/documentation

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);
    }
}

Native filter syntax please visit: http://social.technet.microsoft.com/wiki/contents/articles/5392.active-directory-ldap-syntax-filters.aspx & http://msdn.microsoft.com/en-us/library/windows/desktop/aa746475(v=vs.85).aspx
Click http://landpyactivedirectory.codeplex.com/releases/view/110605 to download the Lib and the CHM help doc.

Support Skype: landpy
Email: mv@live.cn

Moreover (AD):

There are some screenshots in my blog post which is a free collabration web application, the post address is as following:

http://www.cnblogs.com/pangxiaoliang/p/3963011.html

SignIn
Desktop
SendMessage
ReadMessage
Calendar
UserProfile
WorkflowInfo
HandleWorkflow
Permission
Mobile
Mobile
Mobile
Mobile
Mobile

Last edited Oct 9 at 4:06 PM by pangxiaoliang, version 26