From 4b8f44eb27022f048a89f1b6e35c1ca224c436a2 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 5 Dec 2005 06:08:29 +0000 Subject: [PATCH] Updated mkntpasswd to trick autodetection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2225 594d385d-05f5-0310-b6e9-bd551577e9d8 --- bin/mkntpasswd | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/mkntpasswd b/bin/mkntpasswd index e14b057b2..8d71a61e7 100755 --- a/bin/mkntpasswd +++ b/bin/mkntpasswd @@ -1,3 +1,10 @@ #!/bin/sh +if [ $# -ne 1 ]; then + echo "Usage: mkntpwd " + exit 1 +fi + +# Render hash using perl perl -MCrypt::SmbHash -e "ntlmgen \"\$ARGV[0]\", \$lm, \$nt; print \"\${lm}:\${nt}\n\";" $1 + exit 0 -- 2.30.2