Skip to content

feat: Add support for children scope choice const#480

Merged
cpuschma merged 3 commits intogo-ldap:masterfrom
sirzzang:feat-add-scope-const
Jan 13, 2024
Merged

feat: Add support for children scope choice const#480
cpuschma merged 3 commits intogo-ldap:masterfrom
sirzzang:feat-add-scope-const

Conversation

@sirzzang
Copy link
Contributor

This PR adds const declaration for representing children scope value 3.

@cpuschma
Copy link
Member

cpuschma commented Jan 13, 2024

Hi, thank you for your PR.

It seems LDAP_SCOPE_SUBORDINATE is an OpenLDAP server extension. May you please add a comment with a reference to OpenLDAP for clarification?

// ScopeChildren is an OpenLDAP extension that may not be supported by another directory server.
// See: https://github.com/openldap/openldap/blob/7c55484ee153047efd0e562fc1638c1a2525f320/include/ldap.h#L598

Also, please mirror your changes to the v3 directory as well. Then we can get this merged

Thank you!

@cpuschma cpuschma self-assigned this Jan 13, 2024
@cpuschma cpuschma merged commit 9023788 into go-ldap:master Jan 13, 2024
gustavoluvizotto pushed a commit to gustavoluvizotto/ldap-fork that referenced this pull request Apr 11, 2024
* 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>
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.

2 participants