4 PAM_WRAPPER_SO_PATH
="$2"
19 PAM_WRAPPER_PATH
="$BINDIR/default/third_party/pam_wrapper"
21 pam_winbind
="$BINDIR/plugins/pam_winbind.so"
22 service_dir
="$SELFTEST_TMPDIR/pam_services"
23 service_file
="$service_dir/samba"
26 echo "auth required $pam_winbind debug debug_state $PAM_OPTIONS" > $service_file
27 echo "account required $pam_winbind debug debug_state $PAM_OPTIONS" >> $service_file
28 echo "password required $pam_winbind debug debug_state $PAM_OPTIONS" >> $service_file
29 echo "session required $pam_winbind debug debug_state $PAM_OPTIONS" >> $service_file
33 PAM_WRAPPER_SERVICE_DIR
="$service_dir"
34 export PAM_WRAPPER_SERVICE_DIR
35 LD_PRELOAD
="$LD_PRELOAD:$PAM_WRAPPER_SO_PATH"
38 PAM_WRAPPER_DEBUGLEVEL
=${PAM_WRAPPER_DEBUGLEVEL:="3"}
39 export PAM_WRAPPER_DEBUGLEVEL
41 PYTHONPATH
="$PYTHONPATH:$PAM_WRAPPER_PATH:$(dirname $0)" $PYTHON -m samba.subunit.run samba.tests.pam_winbind_setcred