Code

Updated mkntpasswd to trick autodetection
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 5 Dec 2005 06:08:29 +0000 (06:08 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 5 Dec 2005 06:08:29 +0000 (06:08 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2225 594d385d-05f5-0310-b6e9-bd551577e9d8

bin/mkntpasswd

index e14b057b21a46777833a19d8f02ac905b099562b..8d71a61e718f6df4ed9960bb4024a12a68d03203 100755 (executable)
@@ -1,3 +1,10 @@
 #!/bin/sh
+if [ $# -ne 1 ]; then
+       echo "Usage: mkntpwd <password>"
+       exit 1
+fi
+
+# Render hash using perl
 perl -MCrypt::SmbHash -e "ntlmgen \"\$ARGV[0]\", \$lm, \$nt; print \"\${lm}:\${nt}\n\";" $1 
+
 exit 0