VALUE EAP-IKEv2-AuthType cert 2
VALUE EAP-IKEv2-AuthType both 3
+ATTRIBUTE Module-Return-Code 1108 integer
+
+VALUE Module-Return-Code reject 0
+VALUE Module-Return-Code fail 1
+VALUE Module-Return-Code ok 2
+VALUE Module-Return-Code handled 3
+VALUE Module-Return-Code invalid 4
+VALUE Module-Return-Code userlock 5
+VALUE Module-Return-Code notfound 6
+VALUE Module-Return-Code noop 7
+VALUE Module-Return-Code updated 8
+
+
#
# Range: 1200-1279
# EAP-SIM (and other EAP type) weirdness.
#define PW_VIRTUAL_SERVER 1099
#define PW_CLEARTEXT_PASSWORD 1100
#define PW_PASSWORD_WITH_HEADER 1101
+#define PW_MODULE_RETURN_CODE 1108
/*
* Integer Translations
child->name ? child->name : "",
fr_int2str(rcode_table, myresult, "??"));
+ /*
+ * This is a bit of a hack...
+ */
+ if (component != RLM_COMPONENT_SESS) request->simul_max = myresult;
+
/*
* FIXME: Allow modules to push a modcallable
return strlen(out);
break;
+ case PW_MODULE_RETURN_CODE:
+ localvp.attribute = da->attr;
+
+ /*
+ * See modcall.c for a bit of a hack.
+ */
+ localvp.vp_integer = request->simul_max;
+ break;
+
default:
return 0; /* not found */
break;