Michał Gacek pisze:
no dobra a teraz kto mi zrobi cos takiego tylko zeby sciagal komputerki z accountinga z radiusa ;p
Przepraszam , że takiego kotleta odgrzewam , ale pomysła mam :)
kawałek sql.conf:
sql sql_last_online { driver = "rlm_sql_mysql"
server = "localhost" login = "lms" password = "lms"
radius_db = "lms_dev" postauth_table = "nodes" deletestalesessions = yes
sqltrace = yes sqltracefile = ${logdir}/sqltrace.sql
num_sql_socks = 10
connect_failure_retry_delay = 60
sql_user_name = "%{User-Name}" sql_set_password = ""
postauth_query = "UPDATE nodes SET lastonline = unix_timestamp() WHERE name='%{User-Name}'" }
a w radiusd.conf: post-auth {
sql_last_online
# Get an address from the IP Pool. # Post-Auth-Type REJECT { # insert-module-name-here # }
}
Pozdrawiam
!DSPAM:47a0aa8969641250119904!