Skip to content

Commit 79b6ced

Browse files
davidpil2002mssonicbld
authored andcommitted
password-hardening: Add support to disable expiration date like in Linux (PAM) (sonic-net#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: sonic-net#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
1 parent 8362c09 commit 79b6ced

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sonic-yang-models/yang-models/sonic-passwh.yang

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ module sonic-passwh {
2828
}
2929
leaf expiration {
3030
description "expiration time (days unit)";
31-
type uint16 {
32-
range 1..365;
31+
type int16 {
32+
range -1..365;
3333
}
3434
}
3535
leaf expiration_warning {
3636
description "expiration warning time (days unit)";
37-
type uint8 {
38-
range 1..30;
37+
type int8 {
38+
range -1..30;
3939
}
4040
}
4141
leaf history_cnt {

0 commit comments

Comments
 (0)