Add Attribute
Every object class within the directory has a set of required and optional attributes. The Add Attribute and
Delete Attribute methods allow you to add or remove the optional attributes from any entry.
string dn = "CN=Test User,CN=Users,DC=example,DC=com";
context.AddAttribute(dn, "Preferred Name", "Fake User");