Very similar to https://github.com/spaetow/cas-abfab-support/blob/version_1_0_0/jradius-authenticator4/src/main/java/uk/ac/diamond/cas/abfab/radius/ABFABRadiusServerImpl.java (the authenticateEx method) then. :-)

Happy to backport some of those changes into our code if that improves how RADIUS responses are handled :-)