4 PAM_WRAPPER_SO_PATH="$2"
15 PAM_WRAPPER_PATH="$BINDIR/default/third_party/pam_wrapper"
17 pam_winbind="$BINDIR/shared/pam_winbind.so"
18 service_dir="$SELFTEST_TMPDIR/pam_services"
19 service_file="$service_dir/samba"
22 echo "auth required $pam_winbind debug debug_state" > $service_file
23 echo "account required $pam_winbind debug debug_state" >> $service_file
24 echo "password required $pam_winbind debug debug_state" >> $service_file
25 echo "session required $pam_winbind debug debug_state" >> $service_file
29 PAM_WRAPPER_SERVICE_DIR="$service_dir"
30 export PAM_WRAPPER_SERVICE_DIR
31 LD_PRELOAD="$LD_PRELOAD:$PAM_WRAPPER_SO_PATH"
34 PAM_WRAPPER_DEBUGLEVEL=${PAM_WRAPPER_DEBUGLEVEL:="2"}
35 export PAM_WRAPPER_DEBUGLEVEL
37 PYTHONPATH="$PYTHONPATH:$PAM_WRAPPER_PATH:$(dirname $0)" $PYTHON -m samba.subunit.run samba.tests.pam_winbind