//FIXME: Only should ignore the exception when the subsystem is 'osg'
log.warn("Exception was thrown during invocation of method '" +
"createSystemUsers" + "'.", ex);
}
SecurityConfig config = this.portal.getConfig().getSecurityConfig();
LoginModuleConfig loginModConf = config.getLoginModuleConfig();
// build AuthContextProvider based on appName + optional LoginModuleConfig
authContextProvider = new AuthContextProvider(config.getAppName(), loginModConf);
if (authContextProvider.isLocal()) {
log.info("init: use Portal Login-Configuration for " + config.getAppName());
} else if (authContextProvider.isJAAS()) {
log.info("init: use JAAS login-configuration for " + config.getAppName());
} else {
String msg = "Neither JAAS nor RepositoryConfig contained a valid Configuriation for " + config.getAppName();
log.error(msg);
throw new Exception(msg);
}
Properties[] moduleConfig = authContextProvider.getModuleConfig();