Ejemplo n.º 1
0
 def __str__(self):
     self.data = [LDAPOID(self.controlType)]
     if self.criticality is not None:
         self.data.append(BERBoolean(self.criticality))
     if self.controlValue is not None:
         self.data.append(BEROctetString(self.controlValue))
     return BERSequence.__str__(self)
Ejemplo n.º 2
0
 def __str__(self):
     l = [
         LDAPString(self.entry),
         LDAPString(self.newrdn),
         BERBoolean(self.deleteoldrdn),
     ]
     if self.newSuperior is not None:
         l.append(LDAPString(self.newSuperior, tag=CLASS_CONTEXT | 0))
     return str(BERSequence(l, tag=self.tag))
Ejemplo n.º 3
0
 def __str__(self):
     return str(BERSequence([
         BEROctetString(self.baseObject),
         BEREnumerated(self.scope),
         BEREnumerated(self.derefAliases),
         BERInteger(self.sizeLimit),
         BERInteger(self.timeLimit),
         BERBoolean(self.typesOnly),
         self.filter,
         BERSequenceOf(map(BEROctetString, self.attributes)),
         ], tag=self.tag))