actionMessages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(
"admin.role.LdapGroupFilterMessage"));
saveErrors(request, actionMessages);
} else if (cause instanceof LdapCommunicationException) {
ActionMessages actionMessages = new ActionMessages();
SystemManagerLocal manager = LookupUtil.getSystemManager();
Properties options = manager.getSystemConfiguration(LookupUtil.getSubjectManager().getOverlord());
String providerUrl = options.getProperty(RHQConstants.LDAPUrl, "(unavailable)");
actionMessages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(
"admin.role.LdapCommunicationMessage", providerUrl));
saveErrors(request, actionMessages);
}
}
} catch (LdapFilterException lce) {
ActionMessages actionMessages = new ActionMessages();
actionMessages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("admin.role.LdapGroupFilterMessage"));
saveErrors(request, actionMessages);
} catch (LdapCommunicationException lce) {
ActionMessages actionMessages = new ActionMessages();
SystemManagerLocal manager = LookupUtil.getSystemManager();
Properties options = manager.getSystemConfiguration(LookupUtil.getSubjectManager().getOverlord());
String providerUrl = options.getProperty(RHQConstants.LDAPUrl, "(unavailable)");
actionMessages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("admin.role.LdapCommunicationMessage",
providerUrl));
saveErrors(request, actionMessages);
}