get rid of annoying "change your password now" message
[Samba.git] / testsuite / nsswitch / finger.exp
blobab3b28f58fc46395d0208895ad995dd1883f380b
2 # @(#) Test default domain users resolve using the finger command
5 load_lib util-defs.exp
7 set output [util_start "bin/wbinfo" "-u"]
8 if { [regexp "Error" $output] } {
9 fail "error running wbinfo"
10 return
13 set user_list [split $output "\n"]
15 # Look up all users using finger. This should test getpwnam()
17 foreach { user } $user_list {
18 set output [util_start "finger" "-m $user" "" "no such user"]
19 verbose $output
21 if { [regexp "no such user" $output] } {
22 fail "finger -m $user"
23 } else {
24 pass "finger -m $user"
28 verbose "testing finger -m"
30 # Run finger without the -m to also test set/get/endpwent()
32 foreach { user } $user_list {
33 set output [util_start "finger" "-m $user"]
34 verbose $output
36 if { [regexp "no such user" $output] } {
37 fail "finger $user"
38 } else {
39 pass "finger $user"