Skip to content
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

Fix LDAP GetError and LDAP search #509

Merged
merged 35 commits into from
May 3, 2024

Conversation

gustavoluvizotto
Copy link
Contributor

@gustavoluvizotto gustavoluvizotto commented Apr 16, 2024

At error.go, if Value is nil, then the cast will fail.

At search.go, there add an extra check to ensure presence of the attribute when collecting the entries of a successful search.

gustavoluvizotto and others added 30 commits September 11, 2023 18:59
* chore: update go-asn1-ber
* Remove unnecessary dependency for go-asn1-ber v1.5.4 through "go mod tidy"
Signed-off-by: Arjun Singh <ajsinghyadav00@gmail.com>
Co-authored-by: Christopher Puschmann <cp@lumen.sh>
…o-ldap#466)

Parallel and large amount of fuzzing data can create large amounts of allocated data and cause restricted fuzzing environments to crash (see go-ldap#460)
… of changing ber's module global variable for fuzz tests go-ldap#472 (go-ldap#473)
…occurs (go-ldap#474)

Co-authored-by: John Weldon <johnweldon4@gmail.com>
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.13.0 to 0.17.0.
- [Commits](golang/crypto@v0.13.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.13.0 to 0.17.0.
- [Commits](golang/crypto@v0.13.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* feat: Add support for children scope choice const

* Add comment to `ScopeChildren` that this scope may not be available on directory server other than OpenLDAP

* Mirror changes to v3

---------

Co-authored-by: sirzzang <sirzzan@naver.com>
Co-authored-by: Christopher Puschmann <cp@lumen.sh>
* feat: unix gssapi client

* fix: lint errors

* fix: comment grammar

---------

Co-authored-by: Levko Burburas <levko.burburas@biptec.com>
Refer to https://go.dev/wiki/Deprecated

The right way to mark a function as deprecated is to use `Deprecated:`
as the beginning of a doc comment paragraph.

This ensures that various tools (such as static checks) pick up the
deprecation information.
…chAsync() (go-ldap#496)

* Refactor the context handling with receiving an ldap response in searchAsync() go-ldap#495
* Add debug print for response
* Add newly added features and RFCs to the list
* Removed the Travis CI link as it has been replaced with Github Actions
go-ldap#500)

* Revert "fix: Limit maximum BER packet length in `FuzzParseDN` to 65536 bytes (go-ldap#466)"

This reverts commit 80095a3

* Fix index out of range crash
* Update golang.org/x/crypto
* Forgot to mirror to v3
* update asn1-ber
* add tests to parseDN (including fuzz tests) and apply changes required to make roundtripping work

Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>

* undo unnessary changes

Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>

---------

Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
…es (go-ldap#505)

* fix: Replace DER with ASN1 BER encoding when parsing distinguishedNames
* Remove leftover comment
@gustavoluvizotto
Copy link
Contributor Author

@cpuschma how can I get this PR to be reviewed?

Copy link
Member

@johnweldon johnweldon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please match the changes in the root folder to the v3 folder. Otherwise LGTM

@gustavoluvizotto
Copy link
Contributor Author

@johnweldon changes done

@cpuschma cpuschma merged commit 56e5759 into go-ldap:master May 3, 2024
22 checks passed
@gustavoluvizotto gustavoluvizotto deleted the research-scanner branch May 6, 2024 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants