private void FillAttributes()
 {
     UIErrorHelper.CheckedExec(delegate()
     {
         Attributes      = new List <VMDirSchemaAttributeEntryNode>();
         attrTypeManager = this.ServerNode.ServerDTO.Connection.SchemaManager.GetAttributeTypeManager();
         var data        = attrTypeManager.Data;
         foreach (var entry in data)
         {
             Attributes.Add(new VMDirSchemaAttributeEntryNode(this.ServerNode, entry.Value));
         }
         Attributes = Attributes.OrderBy(x => x.DisplayName).ToList();
     });
 }
Пример #2
0
        static void Test2()
        {
            var attrTypes = new List <string>();

            attrTypes.Add("( 0.9.2342.19200300.100.1.1 NAME 'uid' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch )");
            attrTypes.Add("( 1.2.840.113549.1.9.1 NAME ( 'email' 'emailAddress' 'pkcs9email' ) DESC 'RFC3280: legacy attribute for email addresses in DNs' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} )");
            var a = new AttributeTypeManager(attrTypes);

            var objectClasses = new List <string>();

            objectClasses.Add("( 0.9.2342.19200300.100.4.7 NAME 'room' SUP top STRUCTURAL MUST ( cn ) MAY ( description $ telephoneNumber $ seeAlso $ location $ roomNumber ) )");
            var b = new ObjectClassManager(objectClasses);
            //ParseObjectClass(attr);
        }