def __init__(self, ordering_rules, controlType=SSS_REQUEST_CONTROL_OID, **kwargs): RequestControl.__init__(self, controlType=controlType, **kwargs) self.ordering_rules = ordering_rules if isinstance(ordering_rules, basestring): ordering_rules = [ordering_rules] for rule in ordering_rules: rule = rule.split(':') assert len(rule) < 3, 'syntax for ordering rule: [-]<attribute-type>[:ordering-rule]'
def __init__( self, criticality=False, ordering_rules=None, ): RequestControl.__init__(self,self.controlType,criticality) self.ordering_rules = ordering_rules if isinstance(ordering_rules, basestring): ordering_rules = [ordering_rules] for rule in ordering_rules: rule = rule.split(':') assert len(rule) < 3, 'syntax for ordering rule: [-]<attribute-type>[:ordering-rule]'
def __init__(self, ordering_rules, controlType=SSS_REQUEST_CONTROL_OID, **kwargs): RequestControl.__init__(self, controlType=controlType, **kwargs) self.ordering_rules = ordering_rules if isinstance(ordering_rules, basestring): ordering_rules = [ordering_rules] for rule in ordering_rules: rule = rule.split(':') assert len( rule ) < 3, 'syntax for ordering rule: [-]<attribute-type>[:ordering-rule]'
def __init__(self, before_count=0, after_count=0, offset=None, content_count=None, greater_than_or_equal=None, context_id=None, controlType=VLV_REQUEST_CONTROL_OID, **kwargs): RequestControl.__init__(self, controlType, **kwargs) assert (offset is not None and content_count is not None) or greater_than_or_equal, 'offset and ' \ 'content_count must be set together or greater_than_or_equal must be ' \ 'used' self.before_count = before_count self.after_count = after_count self.offset = offset self.content_count = content_count self.greater_than_or_equal = greater_than_or_equal self.context_id = context_id
def __init__(self, before_count=0, after_count=0, offset=None, content_count=None, greater_than_or_equal=None, context_id=None, controlType=VLV_REQUEST_CONTROL_OID, **kwargs): RequestControl.__init__(self, controlType, **kwargs) assert (offset is not None and content_count is not None) or greater_than_or_equal, 'offset and ' \ 'content_count must be set together or greater_than_or_equal must be ' \ 'used' self.before_count = before_count self.after_count = after_count self.offset = offset self.content_count = content_count self.greater_than_or_equal = greater_than_or_equal self.context_id = context_id
def __init__( self, criticality=False, before_count=0, after_count=0, offset=None, content_count=None, greater_than_or_equal=None, context_id=None, ): RequestControl.__init__(self,self.controlType,criticality) assert (offset is not None and content_count is not None) or \ greater_than_or_equal, \ ValueError( 'offset and content_count must be set together or greater_than_or_equal must be used' ) self.before_count = before_count self.after_count = after_count self.offset = offset self.content_count = content_count self.greater_than_or_equal = greater_than_or_equal self.context_id = context_id
def __init__( self, criticality=False, before_count=0, after_count=0, offset=None, content_count=None, greater_than_or_equal=None, context_id=None, ): RequestControl.__init__(self, self.controlType, criticality) assert (offset is not None and content_count is not None) or \ greater_than_or_equal, \ ValueError( 'offset and content_count must be set together or greater_than_or_equal must be used' ) self.before_count = before_count self.after_count = after_count self.offset = offset self.content_count = content_count self.greater_than_or_equal = greater_than_or_equal self.context_id = context_id
def __init__(self, criticality, authzId=None): RequestControl.__init__(self, '1.3.6.1.4.1.42.2.27.9.5.2', criticality, authzId)
def __init__(self, criticality, authzId): RequestControl.__init__(self, ldap.CONTROL_PROXY_AUTHZ, criticality, authzId)
def __init__(self,criticality,authzId=None): RequestControl.__init__(self,'1.3.6.1.4.1.42.2.27.9.5.2',criticality,authzId)
def __init__(self,criticality,authzId): RequestControl.__init__(self,ldap.CONTROL_PROXY_AUTHZ,criticality,authzId)