Skip to content

Commit

Permalink
password-hardening: Add support to disable expiration date like in Li…
Browse files Browse the repository at this point in the history
…nux (PAM) (#17426)

- Why I did it
Enhance the feature to support disabling password hardening as Linux support.
-1: expiration will never occur
0: expiration will expired immediately

Opened bug:
#17427

- How I did it
Added the -1 value to be supported in hostcfgd and this value will propagate to the relevant Linux files

- How to verify it
Pls see the details in the bug description that link attached above
  • Loading branch information
davidpil2002 authored and mssonicbld committed Feb 2, 2024
1 parent f35512e commit 765377a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sonic-yang-models/yang-models/sonic-passwh.yang
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ module sonic-passwh {
}
leaf expiration {
description "expiration time (days unit)";
type uint16 {
range 1..365;
type int16 {
range -1..365;
}
}
leaf expiration_warning {
description "expiration warning time (days unit)";
type uint8 {
range 1..30;
type int8 {
range -1..30;
}
}
leaf history_cnt {
Expand Down

0 comments on commit 765377a

Please sign in to comment.