From b47d3471d5e9b0d6943e0084a83c7b54e466b059 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Tue, 19 Oct 2010 17:23:57 +0400 Subject: [PATCH] ktpass: fix the search path for when running in samba's source dir --- source4/scripting/bin/ktpass.sh | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/source4/scripting/bin/ktpass.sh b/source4/scripting/bin/ktpass.sh index 92b1976..7c13fe4 100755 --- a/source4/scripting/bin/ktpass.sh +++ b/source4/scripting/bin/ktpass.sh @@ -55,6 +55,9 @@ if [ -z "$enc" ]; then fi if [ -z "$path" ]; then path=`dirname $0`/../bin/ + if [ ! -f ${path}ldbsearch ]; then + path=`dirname $0`/../../bin/ + fi fi if [ -z "$outfile" -o -z "$princ" -o -z "$pass" ]; then echo "At least one mandatory parameter (--out, --princ, --pass) was not specified" -- 1.5.6.5