// modify ou=system to be an AP for an A/C AA if it is not already
EntryAttribute administrativeRole = systemEntry.get( "administrativeRole" );
if ( administrativeRole == null || !administrativeRole.contains( SubentryInterceptor.AC_AREA ) )
{
ModifyRequest modReq = new ModifyRequest( systemEntry.getDn() );
modReq.add( "administrativeRole", SubentryInterceptor.AC_AREA );
connection.modify( modReq );
}
// now add the A/C subentry below ou=system
Entry subEntry = new DefaultClientEntry( new DN( "cn=" + cn + "," + ServerDNConstants.SYSTEM_DN ) );