summaryrefslogtreecommitdiffstats
path: root/search.go
diff options
context:
space:
mode:
authorSamuel Stauffer <samuel@descolada.com>2014-03-19 22:13:11 +0100
committerSamuel Stauffer <samuel@descolada.com>2014-03-19 22:13:11 +0100
commit67312503d2a9166d5547734d36dcd5ecc70174cf (patch)
tree8bc3f16196d4a19f4bf062471090f9af69697024 /search.go
parentRename DialSSL to DialTLS and remove DialTLS infavor of exporting StartTLS (diff)
downloadldap-67312503d2a9166d5547734d36dcd5ecc70174cf.tar
ldap-67312503d2a9166d5547734d36dcd5ecc70174cf.tar.gz
ldap-67312503d2a9166d5547734d36dcd5ecc70174cf.tar.bz2
ldap-67312503d2a9166d5547734d36dcd5ecc70174cf.tar.lz
ldap-67312503d2a9166d5547734d36dcd5ecc70174cf.tar.xz
ldap-67312503d2a9166d5547734d36dcd5ecc70174cf.tar.zst
ldap-67312503d2a9166d5547734d36dcd5ecc70174cf.zip
Diffstat (limited to '')
-rw-r--r--search.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/search.go b/search.go
index 4245818..372e5b5 100644
--- a/search.go
+++ b/search.go
@@ -226,7 +226,7 @@ func (l *Conn) SearchWithPaging(searchRequest *SearchRequest, pagingSize uint32)
searchResult := new(SearchResult)
for {
result, err := l.Search(searchRequest)
- l.Debug.Printf("Looking for Paging Control...\n")
+ l.Debug.Printf("Looking for Paging Control...")
if err != nil {
return searchResult, err
}
@@ -244,25 +244,25 @@ func (l *Conn) SearchWithPaging(searchRequest *SearchRequest, pagingSize uint32)
searchResult.Controls = append(searchResult.Controls, control)
}
- l.Debug.Printf("Looking for Paging Control...\n")
+ l.Debug.Printf("Looking for Paging Control...")
pagingResult := FindControl(result.Controls, ControlTypePaging)
if pagingResult == nil {
pagingControl = nil
- l.Debug.Printf("Could not find paging control. Breaking...\n")
+ l.Debug.Printf("Could not find paging control. Breaking...")
break
}
cookie := pagingResult.(*ControlPaging).Cookie
if len(cookie) == 0 {
pagingControl = nil
- l.Debug.Printf("Could not find cookie. Breaking...\n")
+ l.Debug.Printf("Could not find cookie. Breaking...")
break
}
pagingControl.SetCookie(cookie)
}
if pagingControl != nil {
- l.Debug.Printf("Abandoning Paging...\n")
+ l.Debug.Printf("Abandoning Paging...")
pagingControl.PagingSize = 0
l.Search(searchRequest)
}
@@ -303,9 +303,9 @@ func (l *Conn) Search(searchRequest *SearchRequest) (*SearchResult, *Error) {
foundSearchResultDone := false
for !foundSearchResultDone {
- l.Debug.Printf("%d: waiting for response\n", messageID)
+ l.Debug.Printf("%d: waiting for response", messageID)
packet = <-channel
- l.Debug.Printf("%d: got response %p\n", messageID, packet)
+ l.Debug.Printf("%d: got response %p", messageID, packet)
if packet == nil {
return nil, NewError(ErrorNetwork, errors.New("ldap: could not retrieve message"))
}
@@ -345,6 +345,6 @@ func (l *Conn) Search(searchRequest *SearchRequest) (*SearchResult, *Error) {
result.Referrals = append(result.Referrals, packet.Children[1].Children[0].Value.(string))
}
}
- l.Debug.Printf("%d: returning\n", messageID)
+ l.Debug.Printf("%d: returning", messageID)
return result, nil
}