Add postauth function to rlm_rest