if (httpHost != null)
props.put(HttpConstants.HTTP_HOST, httpHost);
if (httpsHost != null)
- props.put(HttpConstants.HTTPS_HOST, httpHost);
+ props.put(HttpConstants.HTTPS_HOST, httpsHost);
if (webSocketEnabled != null)
if (webSocketEnabled.equals("true"))
String demoBaseDn = "dc=example,dc=com";
userAdminUris = demoBaseDn + ".ldif";
File businessRolesFile = new File(nodeBaseDir, userAdminUris);
+ File systemRolesFile = new File(nodeBaseDir, "ou=roles,ou=node.ldif");
if (!businessRolesFile.exists())
try {
FileUtils.copyInputStreamToFile(InitUtils.class.getResourceAsStream(demoBaseDn + ".ldif"),
businessRolesFile);
+ if (!systemRolesFile.exists())
+ FileUtils.copyInputStreamToFile(
+ InitUtils.class.getResourceAsStream("example-ou=roles,ou=node.ldif"), systemRolesFile);
} catch (IOException e) {
- throw new CmsException("Cannot copy demo resource", e);
+ throw new CmsException("Cannot copy demo resources", e);
}
// userAdminUris = businessRolesFile.toURI().toString();
log.warn("## DEV Using dummy base DN " + demoBaseDn);