CVE-2020-25718 s4-rpc_server: Put RODC reveal/never reveal logic into a single helper...
[Samba.git] / testsuite / nsswitch / pam_winbind_syms.exp
blob7c85a2d24d373911fef448dbbf6143be58f6ea44
2 # @(#) Test nss functions are exported from the pam_winbind.so library
3 # @(#) Test there are no external dependencies in the pam_winbind.so library
5 # We expect the following symbols to be exported:
7 # pam_sm_acct_mgmt
8 # pam_sm_authenticate
9 # pam_sm_setcred
11 # This test also has the nice side-effect of showing any unresolved symbols
12 # in the library.
15 load_lib util-defs.exp
17 # Compile pam_winbind_syms.c
19 set output [target_compile "$srcdir/$subdir/pam_winbind_syms.c" \
20 "$srcdir/$subdir/pam_winbind_syms" executable \
21 {"libs=-ldl -lpam" "additional_flags=-g"}]
23 if {$output != ""} {
24 perror "compile pam_winbind_syms.c"
25 puts $output
26 return
29 # Run load-dl.c
31 set output [util_start "$srcdir/$subdir/pam_winbind_syms" \
32 "bin/pam_winbind.so"]
34 if {[regexp "FAIL:" $output]} {
35 fail "run pam_winbind_syms"
36 puts $output
37 return
40 pass "pam_winbind_syms"
42 # Clean up
44 file delete "$srcdir/$subdir/pam_winbind_syms"