3 # this tests share enumeration with "access based share enum"
7 Usage: $0 SERVER USERNAME PASSWORD RPCCLIENT
16 RPCCLIENT
="$VALGRIND ${RPCCLIENT}"
18 incdir
=`dirname $0`/..
/..
/..
/testprogs
/blackbox
24 $RPCCLIENT //$SERVER -U$user%$PASSWORD -c "netshareenumall" |
grep $share > /dev
/null
2>&1
27 testit
"$USERNAME sees tmp" user_see_share
$USERNAME tmp
28 testit
"$USERNAME sees valid-users-tmp" user_see_share
$USERNAME valid-users-tmp
29 testit
"force_user sees tmp" user_see_share force_user tmp
30 testit_expect_failure
"force_user does not see valid-users-tmp" user_see_share force_user valid-users-tmp