blob: 5f6b2343392477e3f4c25741b4c6535704ea1d36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#
# @(#) Test domain users resolve using getpwnam()
#
load_lib util-defs.exp
load_lib "compile.exp"
# Compile getpwnam.c
simple_compile "getpwnam"
# Test domain users
set user_list [split [util_start "bin/wbinfo" "-u"] "\n"]
verbose $user_list
foreach { user } $user_list {
set output [util_start "$srcdir/$subdir/getpwnam" "\"$user\"" ""]
verbose $output
if {[regexp "PASS:" $output]} {
pass "getpwnam $user"
} else {
fail "getpwnam $user"
}
}
|