4 Jul
2011
4 Jul
'11
6:16 a.m.
Cor Bosman <cor@xs4all.nl> wrote:
Would their be some way, in either the PAM stage, or in the FreeRadius stage before Exec to pre-validate if ive got a token-reponse? They're always 10 digit numbers.
unlang is your friend: http://freeradius.org/radiusd/man/unlang.html Something like the following should probably help you: ---- authorize { preprocess ... if (User-Password !~ /^[0-9]{10}$/) { update reply { Reply-Message := "ZOMG, TEH WORLD IS ENDINGS!" } reject } otp-exec-thingy ... } ---- Cheers -- Alexander Clouter .sigmonster says: Good day for overcoming obstacles. Try a steeplechase.