Hello Michael - The simplest way to do this is to add a Reply-Message to the reply in your code, then chain an AuthBy INTERNAL clause after the AuthBy SQL clause with AuthByPolicy ContinueWhileAccept.
The AuthBy INTERNAL clause would call an AuthHook to look at the Reply-Message and reject if necessary, otherwise accept. I find this much clearer and easier to understand. That said, it is possible to do what you ask, but its a bit convoluted. See the example PostAuthHook in “goodies/hooks.txt”. regards Hugh > On 25 Jul 2018, at 08:31, Michael Newton <[email protected]> wrote: > > Pretty basic question; is there a way to reject a request from the > PostAuthSelectHook code? The code also needs to alter the results returned > from the database, so I'm unable to run it in a PostAuthHook. Thanks! > -- > > Michael Newton > Director, Product Development > Point of Presence Technologies > > _______________________________________________ > radiator mailing list > [email protected] > http://lists.open.com.au/mailman/listinfo/radiator -- Hugh Irvine [email protected] Radiator: the most portable, flexible and configurable RADIUS server anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS, TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, MOTP, HOTP, TOTP, DIAMETER, SIM, etc. Full source on Unix, Linux, Windows, macOS, Solaris, VMS, NetWare etc. _______________________________________________ radiator mailing list [email protected] http://lists.open.com.au/mailman/listinfo/radiator
