Skip to content

use ldap boolean for dirsync control.criticality #555

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

Merged
merged 2 commits into from
Apr 14, 2025

Conversation

borislavfra
Copy link
Contributor

In LDAP, boolean has stricter encoding rules than in BER. Need to use NewLDAPBoolean so that the value is FF.
https://docs.ldap.com/specs/rfc4511.txt section 5.1

If the value of a BOOLEAN type is true, the encoding of the value
octet is set to hex "FF".

Copy link
Member

@cpuschma cpuschma left a comment

Choose a reason for hiding this comment

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

@borislavfra LGTM! Thank you for pointing this out and your PR!

@cpuschma cpuschma merged commit 9cfc03b into go-ldap:master Apr 14, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants