Skip to content

Commit

Permalink
included PR from github
Browse files Browse the repository at this point in the history
  • Loading branch information
cannatag committed Dec 26, 2020
1 parent 3775511 commit d6ca0bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions _changelog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# 2.9 - not yet released
- tested against Python 3.9
- added requirements-dev.txt
- added more granular control over use of reverse dns with Kerberos (thanks Azaria)
- support MS Active Directory persistent search (thanks eLeX)


# 2.8.1 - 2020.09.07
Expand Down
4 changes: 2 additions & 2 deletions docs/manual/source/standard.rst
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ For example an output from my test suite is the following::
ACL: 6#entry#cn=[71973491]modified-dn-1,o=test#printJobConfiguration
ACL: 2#entry#[Root]#networkAddress

If you call the persistent_search() method with straming=False you can get the modified entries with the p.next() method.
If you call the persistent_search() method with streaming=False you can get the modified entries with the p.next() method.
Each call to p.next(block=False, timeout=None) returns one event, with the extended control already decoded (as dict values) if available::

from ldap3 import Server, Connection, ASYNC_STREAM
Expand All @@ -215,6 +215,6 @@ Each call to p.next(block=False, timeout=None) returns one event, with the exten

When using next(block=False) or next(block=True, timeout=10) the method returns None if nothing is received from the server.

If you call the persistent_search() method with **callback=myfynction** (where myfunction is a callable, including lambda,
If you call the persistent_search() method with **callback=myfunction** (where myfunction is a callable, including lambda,
accepting a dict as parameter) your function will be called for each event received in the persistent serach.
The function will be called in the same thread of the persistent search, so it should not block.

0 comments on commit d6ca0bf

Please sign in to comment.