-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LDAPSearchResultReference basic implementation #145
Conversation
its toWire method was fixed
Codecov Report
@@ Coverage Diff @@
## master #145 +/- ##
==========================================
+ Coverage 92.38% 92.42% +0.04%
==========================================
Files 72 72
Lines 9649 9663 +14
Branches 928 929 +1
==========================================
+ Hits 8914 8931 +17
+ Misses 593 590 -3
Partials 142 142
Continue to review full report at Codecov.
|
Well, this time I have no idea what codecov does not like :) |
Can anyone who has access to an AD, can they test this code against it? |
I'll try to take a look at it. |
Hmm-- I'm not sure I can generate a query that will create an LDAP Search Result reference. I do have access to an AD, but it is just a single, unpartitioned domain. Is there some way to create an reference entry that can be queried? On a different note, I ran into a number of cases where I got an error similar to the one in #144.
It looks like all the exceptions being raised inherit from
I got this error during StartTLS negotiation and when I tried to query the rootDSE and got a "NO SUCH OBJECT" response. In the former case, the issue seems to be similar to the 2nd error described in #144. In the I only tried this in python 3. I've been weaning myself off python 2.7 this year. |
Thanks @cwaldbieser ! I fixed these issues in the other pull requests: #146 and #147 . |
The latest changes
One of my colleagues gave me an access to his Active Directory test instance. And luckily it responded with a
I tried it on Python 2.7 and 3.6 versions. |
Thanks, this looked good to me. It's good to know this actually worked against a real example! |
Thank you! Maybe we can make a release? There was a number of bug fixes since the last release. |
Glad this was tested against something live. Is everyone on board for another release? |
Yes, a release seems prudent. |
This PR is a fix for issue #144 .
LDAPSearchResultReference
class was not fully implemented and did not have tests before (so I accidently broke it while portingpureldap
code for Python 3). I attempted to implement it accordingly to the RFC but not sure if it really works: I need a LDAP server with this feature to test it (Active Directory for example).Contributor Checklist:
docs/source/NEWS.rst
CONTRIBUTING.rst
.