{
//--------------------------------------------------------------------
// The accountStatus AT
//--------------------------------------------------------------------
Attributes attributes = new BasicAttributes( true );
Attribute objectClassAttribute = new BasicAttribute( "objectClass" );
objectClassAttribute.add( "top" );
objectClassAttribute.add( "metaTop" );
objectClassAttribute.add( "metaAttributeType" );
attributes.put( objectClassAttribute );
attributes.put( "m-oid", "2.16.840.1.113730.3.2.22.249" );
// The name
attributes.put( "m-name", "accountStatus" );
// The Obsolete flag
attributes.put( "m-obsolete", "FALSE" );
// The single value flag
attributes.put( "m-singleValue", "TRUE" );
// The collective flag
attributes.put( "m-collective", "FALSE" );
// The noUserModification flag
attributes.put( "m-noUserModification", "FALSE" );
// The usage
attributes.put( "m-usage", "USER_APPLICATIONS" );
// The equality matching rule
attributes.put( "m-equality", "caseIgnoreMatch" );
// The substr matching rule
attributes.put( "m-substr", "caseIgnoreSubstringsMatch" );
// The syntax
attributes.put( "m-syntax", "1.3.6.1.4.1.1466.115.121.1.15" );
// The superior
attributes.put( "m-supAttributeType", "name" );
// The description
attributes.put( "m-description", "Account Status" );
// Inject the AT
DN dn = new DN( "ou=attributeTypes,cn=apachemeta" );
dn.add( MetaSchemaConstants.M_OID_AT + "=2.16.840.1.113730.3.2.22.249" );
getSchemaContext( service ).createSubcontext( dn, attributes );
//--------------------------------------------------------------------
// The extendPerson OC
//--------------------------------------------------------------------
attributes = new BasicAttributes( true );
objectClassAttribute = new BasicAttribute( "objectClass" );
objectClassAttribute.add( "top" );
objectClassAttribute.add( "metaTop" );
objectClassAttribute.add( "metaObjectClass" );
attributes.put( objectClassAttribute );
attributes.put( "m-oid", "2.16.840.1.113730.3.2.22" );