{"action":"created","issue":{"url":"https://api.github.com/repos/cannatag/ldap3/issues/194","repository_url":"https://api.github.com/repos/cannatag/ldap3","labels_url":"https://api.github.com/repos/cannatag/ldap3/issues/194/labels{/name}","comments_url":"https://api.github.com/repos/cannatag/ldap3/issues/194/comments","events_url":"https://api.github.com/repos/cannatag/ldap3/issues/194/events","html_url":"https://github.com/cannatag/ldap3/issues/194","id":163791600,"number":194,"title":"how to use Controls? persistent search","user":{"login":"martinrm77","id":10651066,"avatar_url":"https://avatars.githubusercontent.com/u/10651066?v=3","gravatar_id":"","url":"https://api.github.com/users/martinrm77","html_url":"https://github.com/martinrm77","followers_url":"https://api.github.com/users/martinrm77/followers","following_url":"https://api.github.com/users/martinrm77/following{/other_user}","gists_url":"https://api.github.com/users/martinrm77/gists{/gist_id}","starred_url":"https://api.github.com/users/martinrm77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinrm77/subscriptions","organizations_url":"https://api.github.com/users/martinrm77/orgs","repos_url":"https://api.github.com/users/martinrm77/repos","events_url":"https://api.github.com/users/martinrm77/events{/privacy}","received_events_url":"https://api.github.com/users/martinrm77/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-07-05T07:55:32Z","updated_at":"2016-07-11T07:30:42Z","closed_at":null,"body":"First, ldap3 is awesome.\r\n\r\nIm trying to figure out how to use a persistent search control by creating a control object with\r\npersistent_search_control = ldap3.protocol.controls.build_control('2.16.840.1.113730.3.4.3', True, 'some value I dont know how to supply')\r\nHow do you supply the controlValue ? its not a string.\r\nThe RFC (https://tools.ietf.org/html/draft-ietf-ldapext-psearch-00) says the control needs a sequence like this:\r\nPersistentSearch ::= SEQUENCE {\r\n                   changeTypes INTEGER,\r\n                   changesOnly BOOLEAN,\r\n                   returnECs BOOLEAN\r\n           }\r\n\r\nHow do you supply this value in something that it can BER encode?\r\n\r\nAnd I was thinking I can supply it to the search function and fire away."},"comment":{"url":"https://api.github.com/repos/cannatag/ldap3/issues/comments/231661062","html_url":"https://github.com/cannatag/ldap3/issues/194#issuecomment-231661062","issue_url":"https://api.github.com/repos/cannatag/ldap3/issues/194","id":231661062,"user":{"login":"martinrm77","id":10651066,"avatar_url":"https://avatars.githubusercontent.com/u/10651066?v=3","gravatar_id":"","url":"https://api.github.com/users/martinrm77","html_url":"https://github.com/martinrm77","followers_url":"https://api.github.com/users/martinrm77/followers","following_url":"https://api.github.com/users/martinrm77/following{/other_user}","gists_url":"https://api.github.com/users/martinrm77/gists{/gist_id}","starred_url":"https://api.github.com/users/martinrm77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinrm77/subscriptions","organizations_url":"https://api.github.com/users/martinrm77/orgs","repos_url":"https://api.github.com/users/martinrm77/repos","events_url":"https://api.github.com/users/martinrm77/events{/privacy}","received_events_url":"https://api.github.com/users/martinrm77/received_events","type":"User","site_admin":false},"created_at":"2016-07-11T07:30:42Z","updated_at":"2016-07-11T07:30:42Z","body":"This is all very nice, I tested it against our RHEL IPA installation on ds389, works like a charm.\r\n\r\nBut, I would much rather get the responses with get_response() and the response_dict - I dont want to parse the LDIF again. Is it possible to get the response dictionaries like with ASYNC strategy?\r\n\r\nI simply want to process each record as they appear, so maybe passing a function that gets each response?\r\n\r\n/Martin"}}
{"actor":{"display_login":"martinrm77"}}