Vendor GoLDAP and fix Integer Encoding #8

Closed
quentin wants to merge 2 commits from import_goldap into main
Owner

Fixes #3

based on:

I fixed the following bug:

I disabled the "Reconnect()" function in the test runner as now we can run all the tests with a single connection.

Also, for the future, I would recommend to totally drop this library and replace it with the clean ASN.1 library shipped with Go. If I have some time, I will try to hack on it!

Fixes #3 based on: - https://ldap.com/ldapv3-wire-protocol-reference-asn1-ber/ - https://pkg.go.dev/encoding/asn1 I fixed the following bug: - https://github.com/lor00x/goldap/issues/3 - and a regression caused by the fact that ASN.1 integer encoding must not be used to write lengths as encoding differs. I disabled the "Reconnect()" function in the test runner as now we can run all the tests with a single connection. Also, for the future, I would recommend to totally drop this library and replace it with the clean ASN.1 library shipped with Go. If I have some time, I will try to hack on it!
quentin force-pushed import_goldap from 0057456ed2 to 24e591c62a 2021-09-16 11:13:43 +00:00 Compare
quentin requested review from lx 2021-09-16 11:14:23 +00:00
quentin closed this pull request 2021-09-16 11:31:13 +00:00
quentin removed review request for lx 2021-09-16 13:22:06 +00:00
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
Required
Details

Pull request closed

Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Deuxfleurs/bottin#8
No description provided.