From f4e9f125e0e4a9ab236595b79315ad26b7ca9d8b 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 file changed, 3 insertions(+) diff --git a/source4/scripting/bin/ktpass.sh b/source4/scripting/bin/ktpass.sh index 92b19769323..7c13fe4ac0e 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" -- 2.11.4.GIT