summaryrefslogtreecommitdiffstats
path: root/control.go
diff options
context:
space:
mode:
authorSamuel Stauffer <samuel@descolada.com>2014-03-19 21:57:32 +0100
committerSamuel Stauffer <samuel@descolada.com>2014-03-19 21:57:59 +0100
commit222854694e922344f18910ce3704115d08ca30cb (patch)
tree62d54db042f04993a4f89b780f0afb02b9a67e18 /control.go
parentconnection handling (diff)
downloadldap-222854694e922344f18910ce3704115d08ca30cb.tar
ldap-222854694e922344f18910ce3704115d08ca30cb.tar.gz
ldap-222854694e922344f18910ce3704115d08ca30cb.tar.bz2
ldap-222854694e922344f18910ce3704115d08ca30cb.tar.lz
ldap-222854694e922344f18910ce3704115d08ca30cb.tar.xz
ldap-222854694e922344f18910ce3704115d08ca30cb.tar.zst
ldap-222854694e922344f18910ce3704115d08ca30cb.zip
Diffstat (limited to 'control.go')
-rw-r--r--control.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/control.go b/control.go
index 3a13c15..9ae50ea 100644
--- a/control.go
+++ b/control.go
@@ -2,12 +2,12 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// This package provides LDAP client functions.
package ldap
import (
"fmt"
- "github.com/marcsauter/asn1-ber"
+
+ "github.com/SpruceHealth/asn1-ber"
)
const (
@@ -45,7 +45,7 @@ func (c *ControlString) Encode() *ber.Packet {
}
func (c *ControlString) String() string {
- return fmt.Sprintf("Control Type: %s (%q) Criticality: %s Control Value: %s", ControlTypeMap[c.ControlType], c.ControlType, c.Criticality, c.ControlValue)
+ return fmt.Sprintf("Control Type: %s (%q) Criticality: %t Control Value: %s", ControlTypeMap[c.ControlType], c.ControlType, c.Criticality, c.ControlValue)
}
type ControlPaging struct {
@@ -76,7 +76,7 @@ func (c *ControlPaging) Encode() *ber.Packet {
func (c *ControlPaging) String() string {
return fmt.Sprintf(
- "Control Type: %s (%q) Criticality: %s PagingSize: %d Cookie: %q",
+ "Control Type: %s (%q) Criticality: %t PagingSize: %d Cookie: %q",
ControlTypeMap[ControlTypePaging],
ControlTypePaging,
false,