]> git.ipfire.org Git - thirdparty/squid.git/blob - helpers/negotiate_auth/kerberos/test_negotiate_auth.sh
SourceFormat Enforcement
[thirdparty/squid.git] / helpers / negotiate_auth / kerberos / test_negotiate_auth.sh
1 #!/bin/bash
2 #
3 ## Copyright (C) 1996-2015 The Squid Software Foundation and contributors
4 ##
5 ## Squid software is distributed under GPLv2+ license and includes
6 ## contributions from numerous individuals and organizations.
7 ## Please see the COPYING and CONTRIBUTORS files for details.
8 ##
9
10 if test -z "$1" ; then
11 echo "Need squid hostname"
12 exit 0
13 fi
14 dir=`dirname $0`
15 if test ! -f $dir/squid.keytab ; then
16 echo "Expect $dir/squid.keytab"
17 exit 0
18 fi
19 # $dir/negotiate_kerberos_auth_test $1 3 | awk '{sub(/Token:/,"YR"); print $0}END{print "QQ"}' | valgrind --log-file=$dir/negotiate_kerberos_auth.val --leak-check=full --show-reachable=yes -v $dir/negotiate_kerberos_auth -d -t none -k squid.keytab
20 $dir/negotiate_kerberos_auth_test $1 3 | awk '{sub(/Token:/,"YR"); print $0}END{print "QQ"}' | $dir/negotiate_kerberos_auth -d -t none -k $dir/squid.keytab -s GSS_C_NO_NAME