protected override void OnAddPropertyPages(PropertyPageCollection propertyPageCollection) { var attrPage = new AttributeEditorPropertyPage(_name, ServerDTO); attrPage.Title = "Attribute Editor"; propertyPageCollection.Add(attrPage.Page); }
static void DoLdap() { var dto = ShowSelectComputerUI(); if (dto == null) { return; } dto.Connection = new VMDirConnection(dto.Server, dto.BindDN, dto.Password); dto.Connection.CreateConnection(); var ocd = dto.Connection.SchemaManager.GetObjectClass("organization"); dto.Connection.SchemaManager.GetRequiredAttributes("vmIdentity-Group"); var cr = dto.Connection.SchemaManager.GetContentRule("organization"); string dn = "CN=a,CN=Users,DC=vsphere,DC=local"; var pp = new AttributeEditorPropertyPage(dn, dto); //new SchemaBrowser(dto).ShowDialog(); }