<br><tt><font size=2>Hi Peter,</font></tt>
<br>
<br><tt><font size=2>I did bother to look at rlm_sql. However my need is
a bit different. I do not</font></tt>
<br><tt><font size=2>want to fetch values from a DB and added them as values
to certain radisu attributes.</font></tt>
<br><tt><font size=2>I want to fetch, do some operation on the feteched
value and then add the result</font></tt>
<br><tt><font size=2>of the operation to the radius attributes. Any ideas
or suggested steps would be</font></tt>
<br><tt><font size=2>helpful.</font></tt>
<br>
<br><tt><font size=2>Regards</font></tt>
<br><tt><font size=2>Nitin</font></tt>
<br>
<br><tt><font size=2>Date: Thu, 7 Jun 2007 11:12:47 +0300<br>
From: Peter Nixon <listuser@peternixon.net><br>
Subject: Re: How to connect to backend DB<br>
To: FreeRadius users mailing list<br>
                
<freeradius-users@lists.freeradius.org><br>
Message-ID: <200706071112.48377.listuser@peternixon.net><br>
Content-Type: text/plain;  charset="iso-8859-9"<br>
<br>
On Thu 07 Jun 2007, Nitin Naveen wrote:<br>
> Hi,<br>
><br>
> I am writing a new RLM called rlm_prop_protocol. It basically adds
some<br>
> attributes. The value for<br>
> these attributes are pulled from a backend database (MYSQL). I wanted
to<br>
> know whether there<br>
> is a provision in freeradius or some standard method that may be used
to<br>
> connect and fetch<br>
> data from the MYSQL database. As of now I have added MYSQL specific
code<br>
> in my module.<br>
<br>
Did you bother to look at the FreeRADIUS code before you started writing??<br>
<br>
The modules rlm_sql and rlm_sql_mysql would seem to be pretty self <br>
explanatory :-)<br>
<br>
It is quite likely that you can do what you need without writing a new
<br>
module...<br>
<br>
Cheers<br>
-- <br>
<br>
Peter Nixon<br>
http://www.peternixon.net/<br>
PGP Key: http://www.peternixon.net/public.asc<br>
</font></tt><pre>



*****************************************************DISCLAIMER*****************************************************

This message and/or attachment(s) contained here are confidential, proprietary to HUGHES SYSTIQUE and its customers. 
Contents may be privileged or otherwise protected by law. The information is solely intended for the entity it is 
addressed to. If you are not the intended recipient of this message, it is strictly prohibited to read, forward, 
print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, 
please notify the sender immediately and delete the message.

********************************************************************************************************************

</pre>