< Home

password alert before-expire (AP password policy view)

Function

The password alert before-expire command sets the password expiration prompt days.

The undo password alert before-expire command restores the default password expiration prompt days.

By default, the number of password expiration prompt days is 30 days.

Format

password alert before-expire days

undo password alert before-expire

Parameters

Parameter Description Value
days

Indicates how long the system displays a prompt before the password expires.

If the value is set to 0, the device does not prompt users that the passwords will expire.

The value is an integer that ranges from 0 to 999, in days. The default value is 30.

Views

AP password policy view

Default Level

3: Management level

Usage Guidelines

When a user logs in to the device, the device checks whether the validity period of the user's password is within the prompt days set by using this command. If so, the device prompts the user how long the password will expire and asks the user whether to change the password.

  • If the user changes the password, the device records the new password and modification time.
  • If the user does not change the password or fails to change the password, the user can still log in as long as the password does not expire.

Example

# Set the number of password expiration prompt days to 90.

<HUAWEI> system-view
[HUAWEI] wlan 
[HUAWEI-wlan-view] ap password policy
[HUAWEI-wlan-ap-pwd-policy] password alert before-expire 90
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >