} catch (Exception e) {
e.printStackTrace();
throw e;
}
kdcServer = KDCServerAnnotationProcessor.getKdcServer(directoryService, 1024, hostname);
final ManagedCreateLdapServer createLdapServer = new ManagedCreateLdapServer(
(CreateLdapServer) AnnotationUtils.getInstance(CreateLdapServer.class));
createLdapServer.setSaslHost(secondaryTestAddress);
createLdapServer.setSaslPrincipal("ldap/" + secondaryTestAddress + "@JBOSS.ORG");
fixTransportAddress(createLdapServer, secondaryTestAddress);
ldapServer = ServerAnnotationProcessor.instantiateLdapServer(createLdapServer, directoryService);
ldapServer.getSaslHost();
ldapServer.setSearchBaseDn("dc=jboss,dc=org");
ldapServer.start();