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

Last edited Jun 18, 2012 at 5:26 AM by MadHatter22, version 1