⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rlm_sql.5

📁 使用最广泛的radius的linux的源码
💻 5
字号:
.\"     # DS - begin display.de DS.RS.nf.sp...\"     # DE - end display.de DE.fi.RE.sp...TH rlm_sql 5 "5 February 2004" "" "FreeRADIUS Module".SH NAMErlm_sql \- FreeRADIUS Module.SH DESCRIPTIONThe \fIrlm_sql\fP module provides an SQL interface to retrieveauthorization information and store accounting information.  It can beused in conjunction with, or in lieu of the files and detail modules.The SQL module has drivers to support the following SQL databases:.PP.DS.br     db2.br     iodbc.br     mysql.br     oracle.br     postgresql.br     sybase.br     unixodbc.br.DE.PPDue to the size of the configuration variables, the sql module isusually configured in a separate file, which is included in the mainradiusd.conf via an include directive..PPThe main configuration items to be aware of are:.IP driverThis variable specifies the driver to be loaded..IP server.IP login.IP passwordThese specify the servername, username, and password the module willuse to connect to the database..IP radius_dbThe name of the database where the radius tables are stored..IP acct_table1.IP acct_table2These specify the tables names for accounting records.  acct_table1specifies the table where Start records are stored.  acct_table2specifies the table where Stop records are stored.  In most cases,this should be the same table..IP postauth_tableThe name of the table to store post-authentication data..IP authcheck_table.IP authreply_tableThe tables where individual Check-Items and Reply-Items are stored..IP groupcheck_table.IP groupreply_tableThe tables where group Check-Items and Reply-Items are stored..IP usergroup_tableThe table where username to group relationships are stored..IP deletestatlesessionsThis option is set to 'yes' or 'no'.  If you are doingSimultaneous-Use checking, and this is set to yes, stale sessions (defined as sessions for which a Stop record was not received ) will becleared..IP sqltrace.IP sqltracefileThese two options are useful for debugging sql problems.  If sqltraceis set to yes, then all sql queries being executed are written to thefile listed in sqltracefile.  This is disabled in normal operation..IP num_sql_socksThe number of sql connections to make to the database..IP connect_failure_retry_delayThe number of seconds to wait before attempting to reconnect to afailed database connection..IP sql_user_nameThis is the definition of the SQL-User-Name attribute.  This is setonce, so that you can use %{SQL-User-Name} in the SQL queries, ratherthan the nested username substitution.  This ensures that Username isparsed consistently for all SQL queries executed..IP default_user_profileThis is the default profile name that will be applied to all users ifset.  This is not set by default..IP query_on_not_foundThis option is set to 'yes' or 'no'.  If set to yes, then the defaultuser profile is returned if no specific match was found for the user..IP authorize_check_query.IP authorize_reply_queryThese queries are run during the authorization stage to extract theuser authorization information from the ${authcheck_table} and${authreply_table}..IP authorize_group_check_query.IP authorize_group_reply_queryThese queries are run during the authorization stage to extract thegroup authorization information from the ${groupcheck_table} and${groupreply_table}..IP accounting_onoff_queryThe query to be run when receiving an Accounting On or Accounting Offpacket..IP accounting_update_query.IP accounting_update_query_altThe query to be run when receiving an Accounting Update packet.  If theprimary query fails, the alt query is run..IP accounting_start_query.IP accounting_start_query_altThe query to be run when receiving an Accounting Start packet.  If theprimary query fails, the alt query is run..IP accounting_stop_query.IP accounting_stop_query_altThe query to be run when receiving an Accounting Stop packet.  If theprimary query fails, the alt query is run..IP simul_count_queryThe query to be run to return the number simultaneous sessions for thepurposes of limiting Simultaneous Use..IP simul_verify_queryThe query to return the detail information needed to confirm that allsuspected connected sessions are valid, and are not stale sessions..IP group_membership_queryThe query to run to check user group membership..IP postauth_queryThe query to run during the post-authentication stage..SH CONFIGURATION.PPDue to the size of the configuration for this module, it is notincluded in this manual page.  Please review the suppliedconfiguration files for example queries and configuration details..SH SECTIONS.BR authorization,.BR accounting,.BR checksimul,.BR post-authentication.PP.SH FILES.I /etc/raddb/radiusd.conf,.I /etc/raddb/sql.conf,.I /etc/raddb/sql/<DB>/dialup.conf,.I /etc/raddb/sql/<DB>/schema.sql,.BR.PP.SH "SEE ALSO".BR radiusd (8),.BR radiusd.conf (5),.SH AUTHORSChris Parker, cparker@segv.org

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -