Code

Updated build script
[gosa.git] / gosa-core / bin / mkntpasswd
1 #!/bin/sh
2 if [ $# -ne 1 ]; then
3         echo "Usage: mkntpwd <password>"
4         exit 1
5 fi
7 # Render hash using perl
8 perl -MCrypt::SmbHash -e "ntlmgen \"\$ARGV[0]\", \$lm, \$nt; print \"\${lm}:\${nt}\n\";" "$1"
10 exit 0