in src/MIMConfigDocumenter/Documenter.cs [398:441]
public static string GetAttributeType(string syntax)
{
Logger.Instance.WriteMethodEntry("Syntax: '{0}'.", syntax);
var attributeType = syntax;
try
{
switch (syntax)
{
case "1.3.6.1.4.1.1466.115.121.1.27":
case "1.2.840.113556.1.4.906":
attributeType = "Number";
break;
case "1.3.6.1.4.1.1466.115.121.1.7":
attributeType = "Boolean";
break;
case "1.3.6.1.4.1.1466.115.121.1.5":
case "1.3.6.1.4.1.1466.115.121.1.40":
attributeType = "Binary";
break;
case "1.3.6.1.4.1.1466.115.121.1.15":
case "1.2.840.113556.1.4.1221":
case "1.2.840.113556.1.4.905":
case "1.3.6.1.4.1.1466.115.121.1.44":
case "1.2.840.113556.1.4.1362":
attributeType = "String";
break;
case "1.3.6.1.4.1.1466.115.121.1.12":
attributeType = "Reference (DN)";
break;
case "1.3.6.1.4.1.1466.115.121.1.24":
case "1.3.6.1.4.1.1466.115.121.1.53":
attributeType = "DateTime";
break;
}
return attributeType;
}
finally
{
Logger.Instance.WriteMethodExit("Syntax: '{0}'. Attribute Type: '{1}'.", syntax, attributeType);
}
}