SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Crypt-SmbHash rpm build for : Old RedHat 7.X. For other distributions click perl-Crypt-SmbHash.

Name : perl-Crypt-SmbHash
Version : 0.12 Vendor : Benjamin Kuit < bj_it_uts_edu_au>
Release : 1 Date : 2005-03-24 10:07:43
Group : Applications/CPAN Source RPM : perl-Crypt-SmbHash-0.12-1.src.rpm
Size : 0.02 MB
Packager : Peter Pramberger < peter_pramberger_member_fsf_org>
Summary : Crypt-SmbHash - Perl-only implementation of lanman and nt md4 hash functions, for use in Samba style smbpasswd entries
Description :
This module generates Lanman and NT MD4 style password hashes, using
perl-only code for portability. The module aids in the administration
of Samba style systems.

In the Samba distribution, authentication is referred to a private
smbpasswd file. Entries have similar forms to the following:

username:unixuid:LM:NT

Where LM and NT are one-way password hashes of the same password.

ntlmgen generates the hashes given in the first argument, and places
the result in the second and third arguments.

Example:
To generate a smbpasswd entry:


use Crypt::SmbHash;
$username = $ARGV[0];
$password = $ARGV[1];
if ( !$password ) {
print \"Not enough arguments\
\";
print \"Usage: $0 username password\
\";
exit 1;
}
$uid = (getpwnam($username))[2];
my ($login,undef,$uid) = getpwnam($ARGV[0]);
ntlmgen $password, $lm, $nt;
printf \"%s:%d:%s:%s:[]:LCT-%08X\
\", $login, $uid, $lm, $nt, \"U\", time;


ntlmgen returns returns the hash values in a list context, so the alternative
method of using it is:

( $lm, $nt ) = ntlmgen $password;

The functions lmhash and nthash are used by ntlmgen to generate the
hashes, and are available when requested:

use Crypt::SmbHash qw(lmhash nthash)
$lm = lmhash($pass);
$nt = nthash($pass);

If Encoding is available (part of perl-5.8) the $pass argument to
ntlmgen, lmhash and nthash must be a perl string. In double use this:

use Crypt::SmbHash qw(ntlmgen lmhash nthash);
use Encode;
( $lm, $nt ) = ntlmgen decode(\'iso-8859-1\', $pass);
$lm = lmhash(decode_utf8($pass), $pwenc);
$nt = nthash(decode_utf8($pass));

The $pwenc parameter to lmhash() is optional and defaults to \'iso-8859-1\'.
It specifies the encoding to which the password is encoded before hashing.

RPM found in directory: /packages/linux-pbone/archive/ftp.pramberger.at/systems/linux/contrib/rh73/noarch

Content of RPM  Changelog  Provides Requires

Download
ftp.icm.edu.pl  perl-Crypt-SmbHash-0.12-1.pp-rh73.noarch.rpm
     

Provides :
perl(Crypt::SmbHash)
perl-Crypt-SmbHash

Requires :
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(VersionedDependencies) <= 3.0.3-1
perl(vars)
perl(Carp)
perl(Exporter)
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
perl => 0:5.005
perl(strict)


Content of RPM :
/usr/lib/perl5/site_perl/5.6.1/Crypt
/usr/lib/perl5/site_perl/5.6.1/Crypt/SmbHash.pm
/usr/share/doc/perl-Crypt-SmbHash-0.12
/usr/share/doc/perl-Crypt-SmbHash-0.12/Changes
/usr/share/doc/perl-Crypt-SmbHash-0.12/README
/usr/share/man/man3/Crypt::SmbHash.3pm.gz

 
ICM