]> git.ipfire.org Git - thirdparty/squid.git/blame - src/auth/negotiate/kerberos/test_negotiate_auth.sh
Source Format Enforcement (#1234)
[thirdparty/squid.git] / src / auth / negotiate / kerberos / test_negotiate_auth.sh
CommitLineData
4ebcf1ce 1#!/bin/bash
ca02e0ec 2#
b8ae064d 3## Copyright (C) 1996-2023 The Squid Software Foundation and contributors
ca02e0ec
AJ
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
685277d8 10if test -z "$1" ; then
4ebcf1ce
MM
11 echo "Need squid hostname"
12 exit 0
13fi
14dir=`dirname $0`
685277d8
MM
15if test ! -f $dir/squid.keytab ; then
16 echo "Expect $dir/squid.keytab"
17 exit 0
18fi
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