rlm_radutmp
Synopsis
The radutmp module writes a utmp
style file that lists the users who are logged in. The file is used
mainly for Simultaneous-Use checking and by radwho to see who
is currently logged in.
Using the sql module to store user login
records is recommended. The radutmp module should be employed for backwards compatibility
and for use in very small systems. It is recommended to use the radutmp module only when the system tracks no more than a few thousand users.
Processing Sections
accounting
When listed in the accounting section, the radutmp module updates the radutmp file.
- Return codes
-
noopThe module did nothing. The input packet did not contain the information required by theradutmpfile. -
failThe module was unable to expand thefilenameor to open the file. -
okThe module successfully wrote the user’s login record to the file.
checksimul
When listed in the checksimul section, the radutmp module checks
the radutmp file to see if the user has already logged in.
- Return codes
-
failThe module was unable to expand thefilenameor to open the file. -
okThe user is allowed to log in. -
noopTheusernamedirective was empty.
Expansions
None.
Directives
- Syntax
-
callerid = boolean
- Default
-
yes
- Description
-
If set, the
Calling-Station-Idwill be stored in the users record.
- Syntax
-
case_sensitive = boolean
- Default
-
yes
- Description
-
Treat the users login name as case sensitive. If set to
no, then the stringsName,NaMe,NAME, andnameare all identical. -
Setting this directive to
nois not recommended.
- Syntax
-
check_with_nas = boolean
- Default
-
yes
- Description
-
The server normally runs
checkradwhen it determines that the user is trying to login multiple times. Thecheckradscript asks the NAS about the previous login sessions, as an accounting "stop" packet might have been lost. -
When this directive is set to
no, the server will not runcheckradand will treat the contents ofradumptas being definitive.
- Syntax
-
filename = string
- Default
-
${logdir}/radutmp
- Description
-
The name of the
radutmpfile. This file should not be rotated.
- Syntax
-
perm = integer
- Default
-
0600
- Description
-
The Unix-style permissions for the log file.
-
The
radutmpfile contains private information about users. Keeping the file permissions as restrictive as possible is recommended.
- Syntax
-
username = string
- Default
-
%{User-Name}
- Description
-
The field in the
requestthat is used as the key for theradutmpentries.
|
Note
|
The size of the field in the utmp data structure is small,
usually around 32 characters. A better key may be
%\{Stripped-User-Name:-%{User-Name}}
|