// 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" );
// The name
attributes.put( "m-name", "extendPerson" );
// The Obsolete flag
attributes.put( "m-obsolete", "FALSE" );
// The Type list
attributes.put( "m-typeObjectClass", "STRUCTURAL" );
// The superiors
attributes.put( "m-supObjectClass", "inetOrgPerson" );
// The description
attributes.put( "m-description", "Extended InetOrgPerson" );
// The MAY list
attributes.put( "m-may", "accountStatus" );
// Inject the OC
dn = new DN( "ou=objectClasses,cn=apachemeta" );
dn.add( MetaSchemaConstants.M_OID_AT + "=2.16.840.1.113730.3.2.22" );
getSchemaContext( service ).createSubcontext( dn, attributes );
}