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
-m. 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 # Run finger without the
-m to also test
set/get/endpwent
()
30 foreach
{ user
} $user_list
{
31 set output
[util_start
"finger" "\"$user\""]
34 if { [regexp
"no such user" $output] } {