3 let conf = "root:x:0:0:999999:7:::
5 expired:$6$INVALID:0:0:0:::100:
6 locked:!$6$INVALID:0:0:0::::
9 test Shadow.lns get conf =
12 { "lastchange_date" = "0" }
13 { "minage_days" = "0" }
14 { "maxage_days" = "999999" }
16 { "inactive_days" = "" }
17 { "expire_date" = "" }
21 { "lastchange_date" = "0" }
22 { "minage_days" = "0" }
23 { "maxage_days" = "0" }
25 { "inactive_days" = "" }
26 { "expire_date" = "" }
29 { "password" = "$6$INVALID" }
30 { "lastchange_date" = "0" }
31 { "minage_days" = "0" }
32 { "maxage_days" = "0" }
34 { "inactive_days" = "" }
35 { "expire_date" = "100" }
38 { "password" = "!$6$INVALID" }
39 { "lastchange_date" = "0" }
40 { "minage_days" = "0" }
41 { "maxage_days" = "0" }
43 { "inactive_days" = "" }
44 { "expire_date" = "" }
47 test Shadow.lns get "+\n" =
50 test Shadow.lns get "+::::::::\n" =
53 { "lastchange_date" = "" }
54 { "minage_days" = "" }
55 { "maxage_days" = "" }
57 { "inactive_days" = "" }
58 { "expire_date" = "" }
61 test Shadow.lns put "+\n" after
62 set "@nisdefault/password" "";
63 set "@nisdefault/lastchange_date" "";
64 set "@nisdefault/minage_days" "";
65 set "@nisdefault/maxage_days" "";
66 set "@nisdefault/warn_days" "";
67 set "@nisdefault/inactive_days" "";
68 set "@nisdefault/expire_date" "";
69 set "@nisdefault/flag" ""
72 test Shadow.lns put "+::::::::\n" after
73 rm "@nisdefault/password";
74 rm "@nisdefault/lastchange_date";
75 rm "@nisdefault/minage_days";
76 rm "@nisdefault/maxage_days";
77 rm "@nisdefault/warn_days";
78 rm "@nisdefault/inactive_days";
79 rm "@nisdefault/expire_date";