Skip to content

Commit

Permalink
Merge pull request #970 from Mindslave/patch-1
Browse files Browse the repository at this point in the history
Update connection.rst to not have "s" undefined
  • Loading branch information
cannatag committed Jul 18, 2021
2 parents 7061548 + 2191269 commit 49fa1f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/manual/source/connection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The following strategies are available:

from ldap3 import Server, Connection, SAFE_SYNC
server = Server('my_server')
conn = Connection(s, 'my_user', 'my_password', client_strategy=SAFE_SYNC, auto_bind=True)
conn = Connection(server, 'my_user', 'my_password', client_strategy=SAFE_SYNC, auto_bind=True)
status, result, response, _ = conn.search('o=test', '(objectclass=*)') # usually you don't need the original request (4th element of the return tuple)

The SafeSync and SafeRestartable strategies can be used with the Abstract Layer, but the Abstract Layer currently is NOT thread safe.
Expand Down

0 comments on commit 49fa1f6

Please sign in to comment.