summaryrefslogtreecommitdiff
path: root/source4/scripting/bin/ktpass.sh
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2010-10-19 17:23:57 +0400
committerMatthieu Patou <mat@samba.org>2010-11-12 19:40:21 +0000
commitf4e9f125e0e4a9ab236595b79315ad26b7ca9d8b (patch)
tree4725556e7d2a777e345b0f483367652ba10ca903 /source4/scripting/bin/ktpass.sh
parente0f64b77ebb5ecbd1bdabe9f2b3cf368421b34e6 (diff)
downloadsamba-f4e9f125e0e4a9ab236595b79315ad26b7ca9d8b.tar.gz
ktpass: fix the search path for when running in samba's source dir
Diffstat (limited to 'source4/scripting/bin/ktpass.sh')
-rwxr-xr-xsource4/scripting/bin/ktpass.sh3
1 files changed, 3 insertions, 0 deletions
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"