📄 users.5
字号:
.TH USERS 5 "04 Jan 2004" "" "FreeRADIUS user authorization file".SH NAMEusers \- user authorization file for the FreeRADIUS server.SH DESCRIPTIONThe \fBusers\fP file resides in the RADIUS database directory, bydefault \fB/etc/raddb\fP. It contains a series of configurationdirectives which are used by the \fIfiles\fP module to decide how toauthorize and authenticate each user request.Every line starting with a hash sign.RB (' # ')is treated as comment and ignored..PPEach entry of the file begins with a username, followed by a (possiblyempty) list of check items, all on one line. The next line beginswith a tab, and a (possibly empty) list of reply items. Each item inthe check or reply item list is an attribute of the form \fBname =value\fP. Multiple items may be placed on one line, in which casethey must be seperated by commas. The reply items may be specifiedover multiple lines, in which case each line must end with a comma,and the last line of the reply items must not end with a comma.The check items are a list of attributes used to match the incomingrequest. If the username matches, AND all of the check items matchthe incoming request, then the reply items are added to the list ofattributes which will be used in the reply to that request. Thisprocess is repeated for all of the entries in the users file.If the incoming request matches NO entry, then the request isrejected..SH CAVEATSThe special username \fBDEFAULT\fP matches any usernames.The entries are processed in order, from the top of the \fBusers\fP file,on down. If an entry contains the special item \fBFall-Through =No\fP as a reply attribute, then the processing of the file stops, andno more entries are matched. Any reply item list without any\fBFall-Through\fP attribute is treated as though it included a\fBFall-Through = No\fP attribute.If an entry contains the special item \fBFall-Through = Yes\fP as areply attribute, then the processing proceeds to the next entry inorder.Care should be taken when using \fBFall-Through\fP. The server shouldbe tested in debugging mode with a number of test requests, in orderto verify that the configured entries behave as expected.The special attribute \fBAuth-Type\fP is used to identify theauthentication type to be used for that user. See the\fBdictionary\fP file for a list of permitted values for the\fBAuth-Type\fP attribute.Once the \fBusers\fP file has been processed, the request is authenticated,using the method given by \fBAuth-Type\fP..SH OPERATORSAdditional operators other than \fB=\fP may be used for the attributes ineither the check item, or reply item list. The following is a list ofoperators, and their meaning..TP 0.5i.B "Attribute = Value"Not allowed as a check item for RADIUS protocol attributes. It isallowed for server configuration attributes (Auth-Type, etc), and setsthe value of on attribute, only if there is no other item of thesame attribute..brAs a reply item, it means "add the itemto the reply list, but only if there is no other item of the sameattribute.".TP 0.5i.B "Attribute := Value"Always matches as a check item, and replaces in the configurationitems any attribute of the same name. If no attribute of that nameappears in the request, then this attribute is added..brAs a reply item, it has an identical meaning, but for the reply items,instead of the request items..TP 0.5i.B "Attribute == Value"As a check item, it matches if the named attribute is present in therequest, AND has the given value..brNot allowed as a reply item..TP 0.5i.B "Attribute += Value"Always matches as a check item, and adds the current attribute withvalue to the list of configuration items..brAs a reply item, it has an identical meaning, but the attribute isadded to the reply items..TP 0.5i.B "Attribute != Value"As a check item, matches if the given attribute is in the request, ANDdoes not have the given value..brNot allowed as a reply item..TP 0.5i.B "Attribute > Value"As a check item, it matches if the request contains an attribute witha value greater than the one given..brNot allowed as a reply item..TP 0.5i.B "Attribute >= Value"As a check item, it matches if the request contains an attribute witha value greater than, or equal to the one given..brNot allowed as a reply item..TP 0.5i.B "Attribute < Value"As a check item, it matches if the request contains an attribute witha value less than the one given..brNot allowed as a reply item..TP 0.5i.B "Attribute <= Value"As a check item, it matches if the request contains an attribute witha value less than, or equal to the one given..brNot allowed as a reply item..TP 0.5i.B "Attribute =~ Expression"As a check item, it matches if the request contains an attribute whichmatches the given regular expression. This operator may only beapplied to string attributes..brNot allowed as a reply item..TP 0.5i.B "Attribute !~ Expression"As a check item, it matches if the request contains an attribute whichdoes not match the given regular expression. This operator may only beapplied to string attributes..brNot allowed as a reply item..TP 0.5i.B "Attribute =* Value"As a check item, it matches if the request contains the namedattribute, no matter what the value is..brNot allowed as a reply item..TP 0.5i.B "Attribute !* Value"As a check item, it matches if the request does not contain the namedattribute, no matter what the value is..brNot allowed as a reply item..SH EXAMPLES.DSbob User-Password == "hello".DE.RSRequests containing the User-Name attribute, with value "bob", will beauthenticated using the password "bob". There are no reply items, sothe reply will be empty..RE.DSDEFAULT Auth-Type = System.br Fall-Through = Yes.DE.RSFor all users reaching this entry, perform authentication against thesystem, unless Auth-Type has already been set. Also, process anyfollowing entries which may match..RE.DSDEFAULT Service-Type == Framed-User, Framed-Protocol == PPP.br Service-Type = Framed-User,.br Framed-Protocol = PPP,.br Fall-Through = Yes.DE.RSIf the request packet contains the attributes Service-Type andFramed-Protocol, with the given values, then include those attributesin the reply.That is, give the user what they ask for. This entry also shows howto specify multiple reply items..RESee the \fBusers\fP file supplied with the server for more examplesand comments..SH HINTSRun the server in debugging mode (\fB-X\fP), and use the\fBradclient\fP program to send it test packets which you think willmatch specific entries. The server will print out which entries werematched for that request, so you can verify your expectations. Thisshould be the FIRST thing you do if you suspect problems with thefile.Care should be taken when writing entries for the \fBusers\fP file. It iseasy to misconfigure the server so that requests are accepted when youwish to reject them. The entries should be ordered, and theFall-Through item should be used ONLY where it is required.Entries rejecting certain requests should go at the top of the file,and should not have a Fall-Through item in their reply items. Entriesfor specific users, who do not have a Fall-Through item, should comenext. Any DEFAULT entries should usually come last, except as fall-throughentries that set reply attributes..SH FILES/etc/raddb/users.SH "SEE ALSO".BR radclient (1),.BR radiusd (8),.BR dictionary (5),.BR naslist (5).SH AUTHORThe FreeRADIUS team.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -