Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/p/y/python3-ldap-0.9.2.2/python3-ldap/ldap3/strategy/syncWait.py   python3-ldap(Download)
                        ldap_resp, unprocessed = decoder.decode(response, asn1Spec=LDAPMessage())
                        if int(ldap_resp['messageID']) == message_id:
                            dict_response = BaseStrategy.decode_response(ldap_resp)
                            ldap_responses.append(dict_response)
                            if dict_response['type'] not in ['searchResEntry', 'searchResRef', 'intermediateResponse']:
                                response_complete = True
                        elif int(ldap_resp['messageID']) == 0:  # 0 is reserved for 'Unsolicited Notification' from server as per rfc 4511 (paragraph 4.4)
                            dict_response = BaseStrategy.decode_response(ldap_resp)

src/p/y/python3-ldap-0.9.2.2/python3-ldap/ldap3/strategy/asyncThreaded.py   python3-ldap(Download)
                    ldap_resp = decoder.decode(unprocessed[:length], asn1Spec=LDAPMessage())[0]
                    message_id = int(ldap_resp['messageID'])
                    dict_response = BaseStrategy.decode_response(ldap_resp)
                    if dict_response['type'] == 'extendedResp' and dict_response['responseName'] == '1.3.6.1.4.1.1466.20037':
                        if dict_response['result'] == 0:  # StartTls in progress