tests: allow test-gssapi to run on Debian

Check for alternate filename of ntlmssp.conf on Debian-based systems.

Resolves #82

Signed-off-by: Mike Miller <mtmiller@debian.org>
This commit is contained in:
Mike Miller
2016-12-15 15:12:04 -08:00
committed by Nikos Mavrogiannopoulos
parent 9f0776e6ae
commit d3370cccd0

View File

@@ -22,7 +22,13 @@ SERV="${SERV:-../src/ocserv}"
srcdir=${srcdir:-.}
PORT=4449
if test ! -f /etc/gss/mech.d/ntlmssp.conf;then
if test -f /etc/gss/mech.d/mech.ntlmssp.conf;then
NTLMSSP_CONF=/etc/gss/mech.d/mech.ntlmssp.conf
else
NTLMSSP_CONF=/etc/gss/mech.d/ntlmssp.conf
fi
if test ! -f $NTLMSSP_CONF;then
echo "GSS NTLM SSP was not found"
exit 77
fi