summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1da734d)
raw | patch | inline | side by side (parent: 1da734d)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 5 Dec 2005 06:08:29 +0000 (06:08 +0000) | ||
committer | cajus <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 | patch | blob | history |
diff --git a/bin/mkntpasswd b/bin/mkntpasswd
index e14b057b21a46777833a19d8f02ac905b099562b..8d71a61e718f6df4ed9960bb4024a12a68d03203 100755 (executable)
--- a/bin/mkntpasswd
+++ b/bin/mkntpasswd
#!/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