From: cajus Date: Mon, 5 Dec 2005 06:08:29 +0000 (+0000) Subject: Updated mkntpasswd to trick autodetection X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4b8f44eb27022f048a89f1b6e35c1ca224c436a2;p=gosa.git Updated mkntpasswd to trick autodetection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2225 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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