Ilya Etingof
Ilya Etingof
Sorry for delay! @idahogray might be right - you've missed the [SequenceOf](http://snmplabs.com/pyasn1/pyasn1/type/univ/sequenceof.html#asn-1-type) component definition: class RegistrationString(univ.Sequence): componentType = namedtype.NamedTypes( namedtype.NamedType('User', univ.BitString()), namedtype.NamedType('Addrs', univ.SequenceOf(componentType=univ.BitString())), namedtype.NamedType('SecretKey', univ.SequenceOf(componentType=univ.BitString())), namedtype.NamedType('ControllerName', univ.BitString()), )
This happens when you have a ASN.1 schema object (e.g. the one not carrying any payload) and attempt to operate on it: i = Integer() bool(i) But that should work...
Can you advise how could I reproduce this with ldap3? Or a little more of a stack trace revealing from where in ldap3 pyasn1 was called...?
Now my guess is that you are using some older ldap3 version which was designed to work with older pyasn1. The newer ldap3 versions accommodate both old and contemporary pyasn1...
That's right, `ObjectIdentity` works lazily. If you want it to get resolved against a MIB you need to explicitly call `.resolveWithMib()` as [noted in the docs](http://snmplabs.com/pysnmp/docs/api-reference.html#pysnmp.smi.rfc1902.ObjectIdentity.resolveWithMib). You will also need...
No *need* to compile MIB files into Python. If you [configure the source of ASN.1 MIBs](http://snmplabs.com/pysnmp/docs/api-reference.html#pysnmp.smi.rfc1902.ObjectIdentity.addAsn1MibSource), the translation would happen behind the scene. But you can also compile ASN.1 MIB(s)...
> If I configure the source of ASN.1 MIBs, it will download and translate the ASN.1 MIB on the fly. That may take some more time than a local copy...
That's a perfectly good place to raise such issues! What looks suspicious to me is: ``` msgAuthoritativeEngineBoots: 0 msgAuthoritativeEngineTime: 0 ``` in the very last packet. It appears like notification...
Hi Kim, Take a look at the [RFC-6025](https://tools.ietf.org/html/rfc6025) -- it's about how to convert X.680 syntax into X.208 one. Just my 2c. ;)
To tell `Integer32` from `Unsigned32` you could either use `.isSameTypeWith()` method or compare the BER tags of the objects: ``` >>> from pysnmp.hlapi import * >>> Integer32().isSameTypeWith(Unsigned32()) False >>> Integer32().isSameTypeWith(Integer32())...