{
DirectoryService service = requestor.getCoreSession().getDirectoryService();
if ( ! requestor.getCoreSession().isAnAdministrator() )
{
requestor.getIoSession().write( new LaunchDiagnosticUiResponse( req.getMessageId(),
ResultCodeEnum.INSUFFICIENT_ACCESS_RIGHTS ) );
return;
}
requestor.getIoSession().write( new LaunchDiagnosticUiResponse( req.getMessageId() ) );
PartitionNexus nexus = service.getPartitionNexus();
DN adminDn = new DN( ServerDNConstants.ADMIN_SYSTEM_DN_NORMALIZED, service.getSchemaManager() );
LdapPrincipal principal = new LdapPrincipal( adminDn, AuthenticationLevel.STRONG );
Set<String> suffixes = nexus.listSuffixes();