<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
text-decoration:underline;}
span.EmailStyle17
{font-family:Arial;
color:navy;}
span.EmailStyle18
{font-family:Arial;
color:navy;}
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
/* List Definitions */
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi Jeremy,</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>In order to apply what wants, you should
do the following:</span></font></p>
<ul type=disc>
<li class=MsoNormal style='color:navy'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Create a table in the radius
schema (called “fails_log”) to include three columns: trial_date,
username, password.</span></font></li>
<li class=MsoNormal style='color:navy'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Create a function in the
database (called “fails”). The main statements which you
should write are </span></font></li>
</ul>
<p class=MsoNormal style='margin-left:36.0pt;text-indent:36.0pt'><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>“</span></font></p>
<p class=MsoNormal style='margin-left:36.0pt;text-indent:36.0pt'><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'> fails ( username1 in out char, password1 in char) return char is</span></font></p>
<p class=MsoNormal style='margin-left:36.0pt;text-indent:36.0pt'><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>v_user char:=’’;</span></font></p>
<p class=MsoNormal style='margin-left:36.0pt;text-indent:36.0pt'><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>v_password:=’’;</span></font></p>
<p class=MsoNormal style='margin-left:36.0pt;text-indent:36.0pt'><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>begin</span></font></p>
<p class=MsoNormal style='margin-left:36.0pt;text-indent:36.0pt'><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>select username , value into v_user from radcheck where
attribute=’password’ and username= username1 and
password=password1;</span></font></p>
<p class=MsoNormal style='margin-left:36.0pt;text-indent:36.0pt'><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>if v_user = ‘’ then insert into fails_log values (sysdate,username1,password1);</span></font></p>
<p class=MsoNormal style='margin-left:36.0pt;text-indent:36.0pt'><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>else return v_user;</span></font></p>
<p class=MsoNormal style='margin-left:36.0pt;text-indent:36.0pt'><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>end if;</span></font></p>
<p class=MsoNormal style='margin-left:36.0pt;text-indent:36.0pt'><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>end; </span></font></p>
<p class=MsoNormal style='margin-left:36.0pt;text-indent:36.0pt'><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'> </span></font></p>
<p class=MsoNormal style='margin-left:36.0pt;text-indent:36.0pt'><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>“ </span></font></p>
<ul type=disc>
<li class=MsoNormal style='color:navy'><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Update authorize_ceck_query
module in sql.conf file to be as follows:</span></font></li>
</ul>
<p class=MsoNormal style='margin-left:36.0pt;text-indent:36.0pt'><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>authorize_check_query = "SELECT id,Username,Attribute,Value,op
FROM ${authcheck_table} WHERE Username =(select fails('%{SQL-User-Name}','%{Use</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>r-Password}’) from dual) ORDER BY
id"</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>That is all. Then you can find all failed
logs inside the new created table fails_log.</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Best Regards,</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Jamal</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b>
freeradius-users-bounces+jamal.taweel=paltel.net@lists.freeradius.org
[mailto:freeradius-users-bounces+jamal.taweel=paltel.net@lists.freeradius.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Jeremy ohara<br>
<b><span style='font-weight:bold'>Sent:</span></b> </span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>Wednesday, May
17, 2006</span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'> </span></font><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>6:32 AM</span></font><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'><br>
<b><span style='font-weight:bold'>To:</span></b> FreeRadius users mailing list<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: getting Freeradius to
recorde login failure, etc</span></font></p>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=1 face=Arial><span
style='font-size:8.0pt;font-family:Arial'>Hi there</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=1 face=Arial><span
style='font-size:8.0pt;font-family:Arial'>i dont want to sound rude, etc but
your not really answering my question. you only answered half of it</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=1 face=Arial><span
style='font-size:8.0pt;font-family:Arial'> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=1 face=Arial><span
style='font-size:8.0pt;font-family:Arial'>what do i wite for the sql
statement, etc</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=1 face=Arial><span
style='font-size:8.0pt;font-family:Arial'> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=1 face=Arial><span
style='font-size:8.0pt;font-family:Arial'>Jeremy </span></font></p>
</div>
<blockquote style='border:none;border-left:solid black 1.5pt;padding:0cm 0cm 0cm 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt'>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-right:0cm;margin-bottom:12.0pt;margin-left:
36.0pt'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>-----Original
Message-----<br>
From: "Duane Cox" <duanec@mail.illicom.net><br>
To: "FreeRadius users mailing list"
<freeradius-users@lists.freeradius.org><br>
Date: </span></font>Tue, 16 May 2006 22:28:12 -0500<br>
Subject: Re: getting Freeradius to recorde login failure, etc</p>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>post-auth {<br>
#<br>
# If you want to have a log of
authentication replies,<br>
# un-comment the following
line, and the 'detail reply_log'<br>
# section, above.<br>
# reply_log</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>
sql</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>
Post-Auth-Type REJECT {<br>
sql<br>
}<br>
}</span></font></p>
</div>
<blockquote style='border:none;border-left:solid black 1.5pt;padding:0cm 0cm 0cm 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt'>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>----- Original Message ----- </span></font></p>
</div>
<div style='font-color:black'>
<p class=MsoNormal style='margin-left:36.0pt;background:#E4E4E4'><b><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight:
bold'>From:</span></font></b><font size=2 face=Arial><span style='font-size:
10.0pt;font-family:Arial'> <a href="mailto:Admin@jemisp.com"
title="Admin@jemisp.com">Jeremy ohara</a> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><b><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial;font-weight:bold'>To:</span></font></b><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> <a
href="mailto:freeradius-users@lists.freeradius.org"
title="freeradius-users@lists.freeradius.org">FreeRadius users mailing list</a>
</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><b><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial;font-weight:bold'>Sent:</span></font></b><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Tuesday, May 16,
2006</span></font><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>9:13 PM</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><b><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial;font-weight:bold'>Subject:</span></font></b><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> Re: getting
Freeradius to recorde login failure, etc</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=1 face=Arial><span
style='font-size:8.0pt;font-family:Arial'>where and how do i do it and
what do i write???</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=1 face=Arial><span
style='font-size:8.0pt;font-family:Arial'> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=1 face=Arial><span
style='font-size:8.0pt;font-family:Arial'>jeremy<br>
</span></font></p>
</div>
<blockquote style='border:none;border-left:solid black 1.5pt;padding:0cm 0cm 0cm 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt'>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-right:0cm;margin-bottom:12.0pt;margin-left:
36.0pt'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>-----Original
Message-----<br>
From: "Duane Cox" <<a href="mailto:duanec@mail.illicom.net">duanec@mail.illicom.net</a>><br>
To: "FreeRadius users mailing list" <<a
href="mailto:freeradius-users@lists.freeradius.org">
freeradius-users@lists.freeradius.org</a>><br>
Date: </span></font>Tue, 16 May 2006 18:17:26 -0500<br>
Subject: Re: getting Freeradius to recorde login failure, etc</p>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>yes, there is a subsection under the
post_auth section for such a thing...</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
</div>
<blockquote style='border:none;border-left:solid black 1.5pt;padding:0cm 0cm 0cm 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt'>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>----- Original Message ----- </span></font></p>
</div>
<div style='font-color:black'>
<p class=MsoNormal style='margin-left:36.0pt;background:#E4E4E4'><b><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight:
bold'>From:</span></font></b><font size=2 face=Arial><span style='font-size:
10.0pt;font-family:Arial'> <a href="mailto:Admin@jemisp.com"
title="Admin@jemisp.com">Jeremy ohara</a> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><b><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial;font-weight:bold'>To:</span></font></b><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> <a
href="mailto:freeradius-users@lists.freeradius.org"
title="freeradius-users@lists.freeradius.org">FreeRadius users mailing list</a>
</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><b><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial;font-weight:bold'>Sent:</span></font></b><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Tuesday, May 16,
2006</span></font><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>3:24 PM</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><b><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial;font-weight:bold'>Subject:</span></font></b><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> getting
Freeradius to recorde login failure, etc</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=1 face=Arial><span
style='font-size:8.0pt;font-family:Arial'><br>
hi there</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=1 face=Arial><span
style='font-size:8.0pt;font-family:Arial'> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=1 face=Arial><span
style='font-size:8.0pt;font-family:Arial'>is there a way to get Freeradius
1.0.5 with Mysql to record login-failure, incorrect password or incorrect
username into the mysql table?</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=1 face=Arial><span
style='font-size:8.0pt;font-family:Arial'> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=1 face=Arial><span
style='font-size:8.0pt;font-family:Arial'>i can see its possbile. but when you
login with wrong details it doesnt get to record the login failure, etc. and i
dont knwo what code to use and how to make freeradius to record it</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=1 face=Arial><span
style='font-size:8.0pt;font-family:Arial'> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=1 face=Arial><span
style='font-size:8.0pt;font-family:Arial'> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=1 face=Arial><span
style='font-size:8.0pt;font-family:Arial'>Jeremy</span></font></p>
</div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
----------------------------------------------------------------------------<br>
This email has been scanned for Virus by MDaemon AntiVirus part of MDaemon.<br>
Updated daily to keep up-to-date with all new and old viruses.<br>
----------------------------------------------------------------------------</span></font></p>
<div>
<div class=MsoNormal align=center style='margin-left:36.0pt;text-align:center'><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center>
</span></font></div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>- <br>
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html</span></font></p>
</div>
</blockquote>
</blockquote>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
----------------------------------------------------------------------------<br>
This email has been scanned for Virus by MDaemon AntiVirus part of MDaemon.<br>
Updated daily to keep up-to-date with all new and old viruses.<br>
----------------------------------------------------------------------------</span></font></p>
<div>
<div class=MsoNormal align=center style='margin-left:36.0pt;text-align:center'><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center>
</span></font></div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>- <br>
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html</span></font></p>
</div>
</blockquote>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
----------------------------------------------------------------------------<br>
This email has been scanned for Virus by MDaemon AntiVirus part of MDaemon.<br>
Updated daily to keep up-to-date with all new and old viruses.<br>
----------------------------------------------------------------------------</span></font></p>
</blockquote>
</div>
</body>
</html>