cas.authn.mfa.radius.client.inetAddress=127.0.0.1 Test is OK
cas.authn.mfa.radius.client.inetAddress=127.0.0.2 Test is OK
cas.authn.mfa.radius.client.inetAddress=127.0.0.1,127.0.0.2 I encountered host or service name not found exception
at the same time i read cas source code, i can't found where to parse 'cas.authn.mfa.radius.client.inetAddress' to create multi radius servive to
ensure failoverException, just regard '127.0.0.1,127.0.0.2' as one raduis service address (5.3.4-RC)
@RefreshScope
@Bean
public List<RadiusServer> radiusTokenServers() {
final List<RadiusServer> list = new ArrayList<>();
final RadiusClientProperties client = casProperties.getAuthn().getMfa().getRadius().getClient();
final RadiusServerProperties server = casProperties.getAuthn().getMfa().getRadius().getServer();
final RadiusClientFactory factory = new RadiusClientFactory(client.getAccountingPort(), client.getAuthenticationPort()
, client.getSocketTimeout(), client.getInetAddress(), client.getSharedSecret());
final RadiusProtocol protocol = RadiusProtocol.valueOf(server.getProtocol());
final JRadiusServerImpl impl = new JRadiusServerImpl(protocol, factory, server.getRetries(),
server.getNasIpAddress(), server.getNasIpv6Address(),
server.getNasPort(), server.getNasPortId(), server.getNasIdentifier(), server.getNasRealPort());
list.add(impl);
return list;
}
在 2019年7月19日星期五 UTC+8上午12:04:55,rbon写道: