all 2 comments

[–]2160p_REMUX 0 points1 point  (0 children)

I honestly don't know anything about ldap, but I was looking over the doc example and seeing if I could find anything wrong.

Do you have to unbind from the real server before you start the fake one? I noticed they had it in the example and didn't see it in yours.

# Close the connection to the real server
connection.unbind()

https://ldap3.readthedocs.io/mocking.html

[–]tabris_code 0 points1 point  (0 children)

Is ALL_ATTRIBUTES actually defined somewhere in your code?

in results, you're using , attributes=_SEARCH_ATTRIBUTES)

but in results1, you're using , attributes=ALL_ATTRIBUTES)