<p>Ok you really help me... Thank you very much... </p>
<div class="gmail_quote">El 17/03/2012 02:42, "Fajar A. Nugraha" <<a href="mailto:list@fajar.net">list@fajar.net</a>> escribió:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Sat, Mar 17, 2012 at 7:55 AM, Fabricio Flores <<a href="mailto:fabrifloresg@gmail.com">fabrifloresg@gmail.com</a>> wrote:<br>
> Mmm I have a web service so I have users and password... So If somebody<br>
> wants to login in the captive portal first i want to see in the web service<br>
> if ther is this user, and if the user exists i add the user in the mysql<br>
> database and freeradius athenticate thes user from the mysql database...<br>
<br>
I'm pretty sure there was a similar thread earlier about this.<br>
<br>
Anyway, for that purpose you do NOT want daloradius/dialupadmin/whatever.<br>
<br>
Instead, what you need is:<br>
- a captive portal login page, that supports dynamic processing, that<br>
you can customize (e.g. <a href="http://net-mai.net/files/hotspotlogin.php.txt" target="_blank">http://net-mai.net/files/hotspotlogin.php.txt</a><br>
)<br>
- knowledge on that particular programing laguange (e.g.<br>
<a href="http://php.net/docs.php" target="_blank">http://php.net/docs.php</a> )<br>
- knowledge on how to create users on FR's sql table. (e.g.<br>
<a href="http://wiki.freeradius.org/rlm_sql" target="_blank">http://wiki.freeradius.org/rlm_sql</a> )<br>
<br>
The "i want to see in the web service if ther is this user" part can<br>
be easily done by modifying the hotspotlogin page, and "add the user<br>
in the mysql<br>
database" part is basically you modify the hostspotlogin page to just<br>
create an entry in radcheck with (randomly-created) cleartext-password<br>
attribute, and possibly another entry with Exipration attribute.<br>
<br>
After that set the hotspotlogin to redirect to the captive portal<br>
(e.g. chillispot) with the correct generated username and password.<br>
Users don't even need to know what the generated password is. The<br>
process between captive portal and radius is then just another normal<br>
NAS <-> radius AAA process, nothing special about it.<br>
<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>
</blockquote></div>