{ "input_pairs", PW_TYPE_STRING_PTR,
offsetof(rlm_exec_t,input), NULL, "request" },
{ "output_pairs", PW_TYPE_STRING_PTR,
- offsetof(rlm_exec_t,output), NULL, "reply" },
+ offsetof(rlm_exec_t,output), NULL, NULL },
{ "packet_type", PW_TYPE_STRING_PTR,
offsetof(rlm_exec_t,packet_type), NULL, NULL },
{ NULL, -1, 0, NULL, NULL } /* end the list */
}
/*
+ * Sanity check the config. If we're told to wait,
+ * then the output pairs should be defined.
+ */
+ if (inst->wait &&
+ (inst->output == NULL)) {
+ radlog(L_INFO, "rlm_exec: Wait=yes but no output defined. Did you mean output=none?");
+ }
+
+ /*
* Get the packet type on which to execute
*/
if (!inst->packet_type) {