thanks for the answer... I want to obtain from the web service the users, but I need to use mysql with freeradius because I'm using daloradius. So I think if the web service authenticate with a perl client in this script add the user to mysql database and after freeradius connect to mysql to do auth... is possible to use the perl and mysql in authorization section? in the perl script i want to connect to my web service and if the user exists add in mysql... after the sql module do athorization, accounting, etc<br>
<br><div class="gmail_quote">El 9 de abril de 2012 10:42, Fajar A. Nugraha <span dir="ltr"><<a href="mailto:list@fajar.net">list@fajar.net</a>></span> escribió:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, Apr 9, 2012 at 10:17 PM, Fabricio Flores <<a href="mailto:fabrifloresg@gmail.com">fabrifloresg@gmail.com</a>> wrote:<br>
> Hi everyone.. I have a little problem... I have users with a web service but<br>
> I need to store the accounting in a mysql database because I use daloradius.<br>
> So I have an authentication with SQL module but I need to add users before<br>
> authorization. So I think if is possible to use the perl module in the<br>
> authorization section to add users to MySQL database and after freeradius do<br>
> an authorization with the mysql database.<br>
<br>
</div>If you're using a captive portal setup, then usually the captive<br>
portal web page will take care of adding users. No need to get perl or<br>
freeradius involved at that point. FR simply uses whatever is on the<br>
db.<br>
<br>
If, on the other hand, you have a setup that's like "I'll accept<br>
whatever username and password that the client sends, and add them to<br>
the db", then it should be possibe, as long as the client ONLY uses<br>
pap (or probably PEAP-GTC and TTLS-PAP as well). You can easily have<br>
multiple modules in authorize section, or even do unlang with "%{sql:<br>
INSERT INTO radcheck ....}". Pardon me if I say such setup is stupid<br>
though. The only time it might be useful is if you're taking over<br>
someone else's radius, with no access to existing user/password, and<br>
simply want to accept whatever the user sends just to keep the service<br>
going.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Fajar<br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Fabricio A. Flores G.<br>Egresado en Ingeniería en Sistemas<br><br>MSN: <a href="mailto:fabri_floresg@hotmail.com" target="_blank">fabri_floresg@hotmail.com</a><br>
Google: <a href="mailto:fabrifloresg@gmail.com" target="_blank">fabrifloresg@gmail.com</a><br>Twitter: fabricioflores<br>Skype: fabriciofloresgallardo<br><br><a href="http://fabricioflores.wordpress.com/" target="_blank">Blog Personal</a><br>
<br>