Autenticazione degli accessi Wireless tramite server Radius: differenze tra le versioni

Riga 208: Riga 208:
# Fall-Through = 1
# Fall-Through = 1
</pre>
</pre>
change/set the shared radius secret for localhost in /etc/freeradius/clients.conf:
Riavviamo FreeRADIUS e testiamo il nuovo account:
client 127.0.0.1 {
<pre>
        secret          = radiussecret
# /etc/init.d/freeradius restart
        nastype        = other        # localhost isn't usually a NAS...
# radtest testsql passwordsql 127.0.0.1 0 chiave_segreta
}
Restart FreeRADIUS and test the account:
root@ford:~ # /etc/init.d/freeradius restart
root@ford:~ # radtest test1 password1 127.0.0.1 0 radiussecret
Sending Access-Request of id 44 to 127.0.0.1:1812
Sending Access-Request of id 44 to 127.0.0.1:1812
         User-Name = "test1"
         User-Name = "testsql"
         User-Password = "password1"
         User-Password = "passwordsql"
         NAS-IP-Address = ford
         NAS-IP-Address = 127.0.0.1
         NAS-Port = 0
         NAS-Port = 0
rad_recv: Access-Accept packet from host 127.0.0.1:1812, id=44, length=20
rad_recv: Access-Accept packet from host 127.0.0.1:1812, id=44, length=20
</pre>
Ok, anche l'autenticazione su SQL funziona.