Mention in login.conf.5 which fields may be infinite and how to specifify infinity.

The number of ways to indicate this confuses people.

PR:		docs/100196
Reported by:	"Dr. Markus Waldeck" <waldeck@gmx.de>
Reported by:	Jamie Landeg Jones <jamie.landeg.jones@gmail.com>
This commit is contained in:
Eitan Adler 2013-10-27 04:59:18 +00:00
parent 23f182d7fe
commit efac066db1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257205

View File

@ -130,6 +130,7 @@ tag being delimited from the value by '=' instead of '#').
Whichever method is used, then all records in the database must use the Whichever method is used, then all records in the database must use the
same method to allow values to be correctly overridden in interpolated same method to allow values to be correctly overridden in interpolated
records. records.
A numeric value may be infinite.
.It size .It size
A number which expresses a size. A number which expresses a size.
The default interpretation of a value is the number of bytes, but a The default interpretation of a value is the number of bytes, but a
@ -148,6 +149,7 @@ represents terabytes.
.El .El
A size value is a numeric quantity and case of the suffix is not significant. A size value is a numeric quantity and case of the suffix is not significant.
Concatenated values are added together. Concatenated values are added together.
A size value may be infinite.
.It time .It time
A period of time, by default in seconds. A period of time, by default in seconds.
A prefix may specify a different unit: A prefix may specify a different unit:
@ -168,8 +170,16 @@ the number of seconds.
Concatenated values are added together. Concatenated values are added together.
For example, 2 hours and 40 minutes may be written either as For example, 2 hours and 40 minutes may be written either as
9600s, 160m or 2h40m. 9600s, 160m or 2h40m.
A time value may be infinite.
.El .El
.Pp .Pp
.Dq infinity ,
.Dq inf ,
.Dq unlimited ,
.Dq unlimit,
and -1
are considered infinite values.
.Pp
The usual convention to interpolate capability entries using the special The usual convention to interpolate capability entries using the special
.Em tc=value .Em tc=value
notation may be used. notation may be used.