66
to
: Specifies the expiration date and time for the user. If you do not specify this option, the command
defines only the validity start date and time of the user.
expiration-date
: Specifies the expiration date in the format of MM/DD/YYYY or YYYY/MM/DD. The
value range for the MM argument is 1 to 12. The value range for the DD argument varies with the
specified month. The value range for the YYYY argument is 2000 to 2035.
expiration-time
: Specifies the expiration time in the format of hh:mm:ss. The value range for the hh
argument is 0 to 23. The value range for the mm and ss arguments is 0 to 59. The mm and ss
arguments are optional. For example, enter 1 to indicate 1:00:00. A value of 0 indicates 00:00:00.
Usage guidelines
Expired network access user accounts cannot be used for authentication.
When both
from
and
to
options are specified, the expiration date and time must be later than the
validity start date and time.
When only the
from
option is specified, the user is valid since the specified date and time. When only
the
to
option is specified, the user is valid until the specified date and time.
When the RADIUS server feature is enabled on the device, the RADIUS user data for authentication
is automatically generated from the network access user configuration. The device ignores the
validity start date and time of the RADIUS users.
Examples
# Specify the validity period for network access user
123
.
<Sysname> system-view
[Sysname] local-user 123 class network
[Sysname-luser-network-123] validity-datetime from 2015/10/01 00:00:00 to 2016/10/02
12:00:00
Related commands
display local-user
RADIUS commands
aaa device-id
Use
aaa device-id
to configure the device ID.
Use
undo aaa device-id
to restore the default.
Syntax
aaa device-id
device-id
undo aaa device-id
Default
The device ID is 0.
Views
System view
Predefined user roles
network-admin
mdc-admin