How to return Reply-Message when user submitted wrong password
A.L.M.Buxey at lboro.ac.uk
A.L.M.Buxey at lboro.ac.uk
Fri Nov 9 09:59:33 CET 2007
hi,
nasty. but you could do it....eg some in this pseudo code
method - just to start you off... perl module
sql = your SQL table
$password = select password from sql where username = $RADREQUEST{%username}
if ($RADREQUEST{%User-Password} != $password) {
$RADREPLY = "Your password is incorrect";
return MODULE_UPDATED;
}
of course, theres a few dozen bits of perl MySQL missing and a couple
of check items gone...and you'd probably have to be careful where/when you run
this. but it should do the job
alan
More information about the Freeradius-Users
mailing list