Skip to content

use ldap boolean for dirsync control.criticality#555

Merged
cpuschma merged 2 commits intogo-ldap:masterfrom
borislavfra:master
Apr 14, 2025
Merged

use ldap boolean for dirsync control.criticality#555
cpuschma merged 2 commits intogo-ldap:masterfrom
borislavfra:master

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