key authentication problem when using perl extension module in an SNMPv3 environment

fancyrabbit <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,
I'm now working in an SNMPv3 environment and use the SNMP perl module
to write some utils.
the following snmpget command is working:
snmpget -v3 -usomeuser -lauthPriv
-3k0x7980621067ef954f21e19c0f4fe9f326
-3K0x866117a53b33ef6c9b3c3c3a419d2e17 10.10.1.1 sysDescr.0
which proves the localized keys are correct.
but the perl script below, isn't working:
====
#!/usr/bin/perl
use SNMP;
use Data::Dumper;

my $s = new SNMP::Session(DestHost => '10.10.1.1',
Version =>3,
AuthProto => 'MD5',
PrivProto => 'DES',
AuthLocalizedKey=>'0x7980621067ef954f21e19c0f4fe9f326',
PrivLocalizedKey=>'0x866117a53b33ef6c9b3c3c3a419d2e17',
SecName => 'someuser',
SecLevel => 'authPriv',
);
print Dumper($s->get('sysDescr.0'));
print Dumper $s;
====
it reported an 'Authentication failure (incorrect password, community
or key)' errorstr.

but if I use the passwords(both auth and priv) to authenticate(in the
perl script), it works.
I just doubt about why I can't use Localized Keys to authenticate thru
SNMPv3. wish someone can give me some hint.

Thanks very much.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.