Index: ucs-test/tests/50_samba/35smbclient_auth =================================================================== --- ucs-test/tests/50_samba/35smbclient_auth (Revision 35061) +++ ucs-test/tests/50_samba/35smbclient_auth (Arbeitskopie) @@ -1,5 +1,5 @@ #!/usr/share/ucs-test/runner bash -## desc: Check wether many parallel smbclient authentifications are possible +## desc: Check whether several parallel smbclient authentifications are possible ## exposure: safe ## packages: ## - screen @@ -23,12 +23,12 @@ #Parameters for configuration: # smbauth_totalRounds: amount of rounds (default=3) # -# smbauth_amountPerRound: amount of authentifications per round (default=8) +# smbauth_amountPerRound: amount of authentifications per round (default=10) # # smbauth_roundTime: defines the time in which all authentifications in one -# round are triggered (default=5) +# round are triggered (default=1) # -# $smbauth_delay: delay between each round (default=10) +# $smbauth_delay: delay between each round (default=1) trap cleanup INT TERM EXIT @@ -47,7 +47,7 @@ then amountPerRound=$smbauth_amountPerRound else - amountPerRound=8 + amountPerRound=10 fi #the total number of authentifications @@ -58,7 +58,7 @@ then roundTime=$smbauth_roundTime else - roundTime=5 + roundTime=1 fi #delay between each round @@ -66,12 +66,9 @@ then delay=$smbauth_delay else - delay=10 + delay=1 fi -SHARE_HOST="$ldap_master" -SHARE_POSITION="cn=$ldap_master,cn=shares,$ldap_base" - #create user username=`user_randomname` password=univention @@ -80,7 +77,7 @@ share_create $share_name /$share_name share_dn=`univention-directory-manager shares/share list --filter sambaName="$share_name" | sed -ne 's/^DN: //p'` udm shares/share modify --dn=$share_dn --set sambaPublic=1 -sleep 10 +sleep 20 function create_screenconfig @@ -105,10 +102,12 @@ let i=0 while [ $i -lt $amountPerRound ] do - screen -S smbclients_$screenIndex -p $authIndex -X stuff "smbclient -U $username%$password //`dig +short ${ldap_master}`/$share_name"`echo -ne '\015'` & + screen -S smbclients_$screenIndex -p $authIndex -X stuff "smbclient -U "$username%$password" //$ldap_master/$share_name"$'\n' & echo Nr. $i - sleep ${delayArray[$i]} + if [ $roundIndex != $totalRounds ]; then + sleep ${delayArray[$i]} + fi let i=$i+1 let authIndex=$authIndex+1 @@ -137,26 +136,22 @@ sum=0 sum2=0 -#create a random number für every authentification at startup + #create a random number für every authentification at startup for ((j=0;j