Przemysław Backiel napisał(a):
Witam,
ozenił ktos freeradiusa z lmsem? Tak, moze sie ktos podzielić wskazówkami jakimis?
Tak, dodatkowy skrypt. Jak dobrze sobie przypominam już kiedyś wysyłałem na grupę. Ja mam zrobione to w TCL-u -- cut--- #!/bin/sh # # Procedura zwraca przerobionÄ linie # # the next line restarts using tclsh \ exec tclsh "$0" "$@" set plikIN /usr/local/etc/raddb/users.rob set plikOUT /usr/local/etc/raddb/users set f1 [open $plikIN r] set f2 [open $plikOUT w] while {[gets $f1 linia] != -1} { set tmp1 [string tolower $linia] } {f {[regexp {^[0-9a-f][0-9a-f]:[0-9a-f][0-9a-f]:[0-9a-f][0-9a-f]:[0-9a-f][0-9a-f]:[0-9a-f][0-9a-f]:[0-9a-f][0-9a-f]} $tmp1]] set ether [string range $tmp1 0 16] set ether [string map {: ""} $ether] set other [string range $linia 17 end] puts $f2 "$ether$other" continue } if {[regexp {[0-9a-f][0-9a-f]:[0-9a-f][0-9a-f]:[0-9a-f][0-9a-f]:[0-9a-f][0-9a-f]} $tmp1]} { puts $f2 [string map {: "" A a B b C c D d E e F f} $linia] continue } puts $f2 $linia } close $f1 close $f2 -- cut-- Za pomocą modułu hostsfile daemona lmsd robię pliczek users.rob oto config: begin #Radius Bajtnet command /usr/local/etc/raddb/radius.tcl deniedhost end file /usr/local/etc/raddb/users.rob grantedhost #%i -%n\n%m Auth-Type = Accept,\n#Password = %m \nSimultaneous-Use = 1 \nService-Type = Outbound-User\n\n networks xxxxx skip_dev_ips no To wszystko, działa od ponad 1/2 roku. KL -- Krzysztof Lewandowski - krzysiek@lca.pl Oficjalny Portal Miasta Legnicy - www.lca.pl 59-220 Legnica, ul. Pomorska 56 tel. (76) 866 49 11 biuro@lca.pl Nie odpisuje na listy pisane w HTML