tokkee.org
Code
projects
/
gosa.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added network card manufacturer string to network template
[gosa.git]
/
gosa-core
/
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