tokkee.org
Code
projects
/
gosa.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fixed server base selection
[gosa.git]
/
bin
/
mkntpasswd
1
#!/bin/sh
2
if [ $# -ne 1 ]; then
3
echo "Usage: mkntpwd <password>"
4
exit 1
5
fi
6
7
# Render hash using perl
8
perl -MCrypt::SmbHash -e "ntlmgen \"\$ARGV[0]\", \$lm, \$nt; print \"\${lm}:\${nt}\n\";" $1
9
10
exit 0