@@ -709,7 +709,7 @@ func (c *ControlDirSync) Encode() *ber.Packet {
709
709
710
710
packet := ber .Encode (ber .ClassUniversal , ber .TypeConstructed , ber .TagSequence , nil , "Control" )
711
711
packet .AppendChild (ber .NewString (ber .ClassUniversal , ber .TypePrimitive , ber .TagOctetString , ControlTypeDirSync , "Control Type (" + ControlTypeMap [ControlTypeDirSync ]+ ")" ))
712
- packet .AppendChild (ber .NewBoolean (ber .ClassUniversal , ber .TypePrimitive , ber .TagBoolean , c .Criticality , "Criticality" )) // must be true always
712
+ packet .AppendChild (ber .NewLDAPBoolean (ber .ClassUniversal , ber .TypePrimitive , ber .TagBoolean , c .Criticality , "Criticality" )) // must be true always
713
713
714
714
val := ber .Encode (ber .ClassUniversal , ber .TypePrimitive , ber .TagOctetString , nil , "Control Value (DirSync)" )
715
715
seq := ber .Encode (ber .ClassUniversal , ber .TypeConstructed , ber .TagSequence , nil , "DirSync Control Value" )
@@ -868,7 +868,7 @@ func NewControlServerSideSortingResult(pkt *ber.Packet) (*ControlServerSideSorti
868
868
869
869
if pkt == nil || len (pkt .Children ) == 0 {
870
870
// This is currently not compliant with the ServerSideSorting RFC (see https://datatracker.ietf.org/doc/html/rfc2891#section-1.2).
871
- // but it's necessary because there seems to be a bug in the implementation of the popular OpenLDAP server.
871
+ // but it's necessary because there seems to be a bug in the implementation of the popular OpenLDAP server.
872
872
//
873
873
// See: https://github.com/go-ldap/ldap/pull/546
874
874
return control , nil
0 commit comments