@@ -709,7 +709,7 @@ func (c *ControlDirSync) Encode() *ber.Packet {
709709
710710 packet := ber .Encode (ber .ClassUniversal , ber .TypeConstructed , ber .TagSequence , nil , "Control" )
711711 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
713713
714714 val := ber .Encode (ber .ClassUniversal , ber .TypePrimitive , ber .TagOctetString , nil , "Control Value (DirSync)" )
715715 seq := ber .Encode (ber .ClassUniversal , ber .TypeConstructed , ber .TagSequence , nil , "DirSync Control Value" )
@@ -868,7 +868,7 @@ func NewControlServerSideSortingResult(pkt *ber.Packet) (*ControlServerSideSorti
868868
869869 if pkt == nil || len (pkt .Children ) == 0 {
870870 // 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.
872872 //
873873 // See: https://github.com/go-ldap/ldap/pull/546
874874 return control , nil
0 commit comments