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

📄 rlm_passwd.5

📁 radius服务器
💻 5
字号:
.TH rlm_passwd 5 "14 April 2004" "" "FreeRADIUS Module".SH NAMErlm_passwd \- FreeRADIUS Module.SH DESCRIPTIONThe \fIrlm_passwd\fP module provides authorization via files similarin format to /etc/passwd..PPThe \frlm_passwd\fP module allows you to retrieve any accountinformation from any files with passwd-like format (/etc/passwd,/etc/group, smbpasswd, .htpasswd, etc).  Every field of the file maybe mapped to a RADIUS attribute, with one of the fields used as akey..PPThe module reads the file when it initializes, and caches the datain memory.  As a result, it does not support dynamic updates of thefiles (the server has to be HUP'd), but it is very fast, even forfiles with thousands of lines..PPThe configuration item(s):.IP filenameThe path to the file..IP delimiter = ":"The character to use as a delimiter between fields.  The default is":".IP hashsizeThe size of the hashtable.  If 0, then the passwords are not cachedand the passwd file is parsed for every request.  We do not recommendsuch a configuration.  A larger hashsize means less probability ofcollision and faster search in hashtable. Having a hashsize in the rangeof 30-100% of the number of passwd file records is reasonable..IP allowmultiplekeysIf set to 'yes', and more than one record in file matches the request,then the attributes from all records will be used. If set to 'no' (thedefault) the module will warn about duplicated records..IP ignorenislikeIf set to 'yes', then all records from the file beginning with the '+'sign will be ignored.  The default is 'no'..IP authtypeIf an entry matches, the Auth-Type for the request will be set to theone specified here..IP formatThe format of the fields in the file, given as an example line fromthe file, with the content of the fields as the RADIUS attributeswhich the fields map to.  The fields are seperated by the ':' character..PPThe key field is signified by being preceded with a '*' character,which indicates that the field has only one key, like the /etc/passwdfile.  The key field may instead be preceded with '*,', whichindicates that the field has multiple possible keys, like the/etc/group file..PPThe other fields signify RADIUS attributes which, by default, areadded to the configuration items for a request. .PPTo add an attribute to the request (as though it was sent by the NAS),prefix the attribute name in the "format" string with the '~' character..PPTo add an attribute to the reply (to be sent back to the NAS) prefixthe attribute name in the "format" string with the '=' character..SH EXAMPLES.DSformat = "My-Group:::*,User-Name".DE.IPParse a file similar to the /etc/group file.  An entry matches arequest when the name in a User-Name attribute exists in thecomma-seperated list of a line in the file.  When an entry matches, a "My-Group" attribute will be created and added to the configurationitems for the request.  The value of that attribute will be taken fromthe first field of the matching line in the file..IPThe ":::" in the format string means that there are extra two fieldsin the line, in between the group name and list of user names.  Thosefields do not map to any RADIUS attribute, and are therefore ignored..IPFor this example to work in practice, you will have to add theMy-Group attribute to the dictionary file.  See the dictionary manualpage for details on how this may be done..PP.DSformat = "~My-Group:::*,User-Name".DE.IPSimilar to the previous entry, except the My-Group attribute is addedto the request, as though it was sent by the NAS..SH SECTIONS.BR authorize.PP.SH FILES.I /etc/raddb/radiusd.conf.PP.SH "SEE ALSO".BR radiusd (8),.BR radiusd.conf (5).BR dictionary (5),.SH AUTHORAlan DeKok <aland@freeradius.org>

⌨️ 快捷键说明

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