#my %RAD_CHECK;
#
-# This the remaping of return values
+# This the remapping of return values
#
use constant RLM_MODULE_REJECT=> 0;# /* immediately reject the request */
use constant RLM_MODULE_FAIL=> 1;# /* module failed, don't reply */
return RLM_MODULE_OK;
}
+# Function to handle pre_proxy
+sub pre_proxy {
+ # For debugging purposes only
+# &log_request_attributes;
+
+ return RLM_MODULE_OK;
+}
+
+# Function to handle post_proxy
+sub post_proxy {
+ # For debugging purposes only
+# &log_request_attributes;
+
+ return RLM_MODULE_OK;
+}
+
+# Function to handle post_auth
+sub post_auth {
+ # For debugging purposes only
+# &log_request_attributes;
+
+ return RLM_MODULE_OK;
+}
+
# Function to handle xlat
sub xlat {
# For debugging purposes only
if (inst->func_accounting) free(inst->func_accounting);
if (inst->func_preacct) free(inst->func_preacct);
if (inst->func_checksimul) free(inst->func_checksimul);
+ if (inst->func_pre_proxy) free(inst->func_pre_proxy);
+ if (inst->func_post_proxy) free(inst->func_post_proxy);
+ if (inst->func_post_auth) free(inst->func_post_auth);
if (inst->func_detach) free(inst->func_detach);
#ifdef USE_ITHREADS
perl_instantiate, /* instantiation */
perl_detach, /* detach */
{
- perl_authenticate,
- perl_authorize,
- perl_preacct,
- perl_accounting,
+ perl_authenticate, /* authenticate */
+ perl_authorize, /* authorize */
+ perl_preacct, /* preacct */
+ perl_accounting, /* accounting */
perl_checksimul, /* check simul */
- perl_pre_proxy, /* pre-proxy */
+ perl_pre_proxy, /* pre-proxy */
perl_post_proxy, /* post-proxy */
- perl_post_auth /* post-auth */
+ perl_post_auth /* post-auth */
},
};