How to return Reply-Message when user submitted wrong password
Lee Sing Chyun
singchyun at gmail.com
Mon Nov 12 02:25:13 CET 2007
On Nov 9, 2007 4:59 PM, <A.L.M.Buxey at lboro.ac.uk> wrote:
> 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
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
Hi Alan, thank you very much for the pseudo codes. I'm quite new to
FreeRADIUS, so I need to check with you: are these for writing a new module?
--
Best Regards,
Lee Sing Chyun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20071112/c5befff0/attachment.html>
More information about the Freeradius-Users
mailing list