3 let conf = "root:x:0:0:root:/root:/bin/bash
4 libuuid:x:100:101::/var/lib/libuuid:/bin/sh
5 free:x:1000:1000:Free Ekanayaka,,,:/home/free:/bin/bash
6 root:*:0:0:Charlie &:/root:/bin/csh
9 test Passwd.lns get conf =
16 { "shell" = "/bin/bash" } }
22 { "home" = "/var/lib/libuuid" }
23 { "shell" = "/bin/sh" } }
28 { "name" = "Free Ekanayaka,,," }
29 { "home" = "/home/free" }
30 { "shell" = "/bin/bash" } }
35 { "name" = "Charlie &" }
37 { "shell" = "/bin/csh" } }
39 (* Popular on Solaris *)
40 test Passwd.lns get "+@some-nis-group::::::\n" =
41 { "@nis" = "some-nis-group" }
43 test Passwd.lns get "+\n" =
46 test Passwd.lns get "+::::::/sbin/nologin\n" =
53 { "shell" = "/sbin/nologin" } }
55 (* NIS entries with overrides, ticket #339 *)
56 test Passwd.lns get "+@bob:::::/home/bob:/bin/bash\n" =
58 { "home" = "/home/bob" }
59 { "shell" = "/bin/bash" } }