예제 #1
0
파일: pureldap.py 프로젝트: im-0/ldaptor
 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)
예제 #2
0
파일: pureldap.py 프로젝트: im-0/ldaptor
 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))
예제 #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))