实现同一时间唯一用户认证

2009-05-13 03:55:55来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

实现同一时间唯一用户认证
环境:freeradius1.0.5
1、修改sql.conf文件
新增定义:
sql sql_only {
        driver = "rlm_sql_mysql"
        # Connect info
        server = "localhost"        login = "root"
        password = ""
        # Database table configuration
        radius_db = "radius"
        # If you want both stop and start records logged to the
        # same SQL table, leave this as is.  If you want them in
        # different tables, put the start table in acct_table1        # and stop table in acct_table2        acct_table1 = "radacct"
        acct_table2 = "radacct"
        # Allow for storing data after authentication
        postauth_table = "radpostauth"
        authcheck_table = "radcheck"
        authreply_table = "radreply"
        groupcheck_table = "radgroupcheck"
        groupreply_table = "radgroupreply"
        usergroup_table = "usergroup"
        # Table to keep radius client info
        nas_table = "nas"
        # Remove stale session if checkrad does not see a double login
        deletestalesessions = yes
        # Print all SQL statements when in debug mode (-x)
        sqltrace = no
        sqltracefile = ${logdir}/sqltrace.sql
        # number of sql connections to make to server
        num_sql_socks = 5
        # number of seconds to dely retrying on a failed database
        # connection (per_socket)
        connect_failure_retry_delay = 60
        sql_user_name = "%{Stripped-User-Name:-%{User-Name:-DEFAULT}}"
        #
        radius_db = "radius"
        # If you want both stop and start records logged to the
        # same SQL table, leave this as is.  If you want them in

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:freeradius数据库配置说明

下一篇:Jail简单打造安全FreeBSD系统