Univention Bugzilla – Attachment 4262 Details for
Bug 25771
Squid und Samba 4
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
curl-ntlm-test.sh
curl-ntlm-test.sh (text/x-sh), 798 bytes, created by
Felix Botner
on 2012-03-12 13:14 CET
(
hide
)
Description:
curl-ntlm-test.sh
Filename:
MIME Type:
Creator:
Felix Botner
Created:
2012-03-12 13:14 CET
Size:
798 bytes
patch
obsolete
>#!/bin/bash > >eval "$(ucr shell)" > >PROXYUSER="Administrator" >PROXYPASS="univention" >PROXY="http://${interfaces_eth0_address}:3128" >URL="http://${interfaces_eth0_address}" >CHECKSTRING="Proxy-Authenticate: Basic" >MAXTIMEOUT="5" > >function doProxyAuth () { > > CURL_OUTPUT=$(curl --proxy "$PROXY" --proxy-ntlm --proxy-user "$PROXYUSER:$PROXYPASS" \ > --url "$URL" -s 0 -I -m $MAXTIMEOUT) > if [ "$?" -ne "0" ]; then > return 1 > fi > echo "$CURL_OUTPUT" | grep "$CHECKSTRING" > if [ "$?" -eq "0" ]; then > return 1 > fi > > return 0 >} > >function doCheck () { > > pids="" > for i in $(seq 1 40); do > doProxyAuth & > pids="$pids $!" > done > > fail=0 > for pid in $pids; do > wait $pid || let "fail+=1" > done > > if [ $fail -ne 0 ]; then > echo "test failed" > exit 1 > fi >} > >for i in $(seq 1 60); do > doCheck >done > >exit 0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 25771
: 4262