Пример #1
0
 def encodedRequestValue(self):
     p = self.RefreshRequestValue()
     p.setComponentByName(
         'entryName',
         LDAPDN(self.entryName).subtype(implicitTag=tag.Tag(
             tag.tagClassContext, tag.tagFormatSimple, 0)))
     p.setComponentByName(
         'requestTtl',
         univ.Integer(self.requestTtl).subtype(implicitTag=tag.Tag(
             tag.tagClassContext, tag.tagFormatSimple, 1)))
     return encoder.encode(p)
Пример #2
0
 class RefreshRequestValue(univ.Sequence):
     componentType = namedtype.NamedTypes(
         namedtype.NamedType(
             'entryName',
             LDAPDN().subtype(implicitTag=tag.Tag(tag.tagClassContext,
                                                  tag.tagFormatSimple, 0))),
         namedtype.NamedType(
             'requestTtl',
             univ.Integer().subtype(implicitTag=tag.Tag(
                 tag.tagClassContext, tag.tagFormatSimple, 1))),
     )
Пример #3
0
class DerefRes(univ.Sequence):
    componentType = namedtype.NamedTypes(
        namedtype.NamedType('derefAttr', AttributeDescription()),
        namedtype.NamedType('derefVal', LDAPDN()),
        namedtype.OptionalNamedType('attrVals', PartialAttributeList()),
    )
Пример #4
0
class EntryChangeNotificationValue(univ.Sequence):
  componentType = namedtype.NamedTypes(
    namedtype.NamedType('changeType',ChangeType()),
    namedtype.OptionalNamedType('previousDN', LDAPDN()),
    namedtype.OptionalNamedType('changeNumber',univ.Integer()),
  )