Skip to content

Commit ca2695f

Browse files
authored
password-hardening: Add support to disable expiration date like in Linux (PAM) (sonic-net#17426) (sonic-net#17674)
1 parent 388457a commit ca2695f

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)