2 # @
(#
) Test default domain users resolve using the finger command
7 set output
[util_start
"bin/wbinfo" "-u"]
8 if { [regexp
"Error" $output] } {
9 fail
"error running wbinfo"
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"]
21 if { [regexp
"no such user" $output] } {
22 fail
"finger -m $user"
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"]
36 if { [regexp
"no such user" $output] } {