Fix snmpv3 autovivication bug setting priv strings
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
* [#85] device property in _no/_only fails with error (R. Kerr)
|
* [#85] device property in _no/_only fails with error (R. Kerr)
|
||||||
* Also prefer port filter when linking to connected devices
|
* Also prefer port filter when linking to connected devices
|
||||||
* Fix SQL logic in PortMAC.pm (imperfectus)
|
* Fix SQL logic in PortMAC.pm (imperfectus)
|
||||||
|
* Fix snmpv3 autovivication bug setting priv strings (LT)
|
||||||
|
|
||||||
2.021001
|
2.021001
|
||||||
|
|
||||||
|
|||||||
@@ -218,17 +218,22 @@ sub _mk_info_commargs {
|
|||||||
return (Community => $comm->{community})
|
return (Community => $comm->{community})
|
||||||
if exists $comm->{community};
|
if exists $comm->{community};
|
||||||
|
|
||||||
my $seclevel = (exists $comm->{auth} ?
|
my $seclevel =
|
||||||
(exists $comm->{priv} ? 'authPriv' : 'authNoPriv' )
|
(exists $comm->{auth} ?
|
||||||
: 'noAuthNoPriv');
|
(exists $comm->{priv} ? 'authPriv' : 'authNoPriv' )
|
||||||
|
: 'noAuthNoPriv');
|
||||||
|
|
||||||
return (
|
return (
|
||||||
SecName => $comm->{user},
|
SecName => $comm->{user},
|
||||||
SecLevel => $seclevel,
|
SecLevel => $seclevel,
|
||||||
AuthProto => uc (eval { $comm->{auth}->{proto} } || 'MD5'),
|
( exists $comm->{auth} ? (
|
||||||
AuthPass => (eval { $comm->{auth}->{pass} } || ''),
|
AuthProto => uc ($comm->{auth}->{proto} || 'MD5'),
|
||||||
PrivProto => uc (eval { $comm->{priv}->{proto} } || 'DES'),
|
AuthPass => ($comm->{auth}->{pass} || ''),
|
||||||
PrivPass => (eval { $comm->{priv}->{pass} } || ''),
|
( exists $comm->{priv} ? (
|
||||||
|
PrivProto => uc ($comm->{priv}->{proto} || 'DES'),
|
||||||
|
PrivPass => ($comm->{priv}->{pass} || ''),
|
||||||
|
) : ()),
|
||||||
|
) : ()),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user