When using the cas ldap pool configuration, the connectionStrategy policy is ROUND_ROBIN, see the code, set useConnectionCount to false.
If you do not set useConnectionCount, the policy is invalid. Except for modifying the code, cc.setConnectionStrategy(new RoundRobinConnectionStrategy(false));
where the property configuration is set.
cas.authn.ldap[0].connectionStrategy=ROUND_ROBIN