summaryrefslogtreecommitdiffstats
path: root/conn.go
diff options
context:
space:
mode:
authorunai.avila <unai.avila@fonyou.com>2014-09-04 11:32:10 +0200
committerunai.avila <unai.avila@fonyou.com>2014-09-04 11:32:10 +0200
commit492fd8f904034d84f406b496211e3affade8aa9a (patch)
treede415aeb1fb8693c8d076351a7fd86bb6e1ec6ff /conn.go
parentAdd ping method (diff)
downloadldap-492fd8f904034d84f406b496211e3affade8aa9a.tar
ldap-492fd8f904034d84f406b496211e3affade8aa9a.tar.gz
ldap-492fd8f904034d84f406b496211e3affade8aa9a.tar.bz2
ldap-492fd8f904034d84f406b496211e3affade8aa9a.tar.lz
ldap-492fd8f904034d84f406b496211e3affade8aa9a.tar.xz
ldap-492fd8f904034d84f406b496211e3affade8aa9a.tar.zst
ldap-492fd8f904034d84f406b496211e3affade8aa9a.zip
Diffstat (limited to '')
-rw-r--r--conn.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/conn.go b/conn.go
index 862b5ff..ce0370d 100644
--- a/conn.go
+++ b/conn.go
@@ -315,11 +315,6 @@ func (l *Conn) Ping() error {
}
defer l.finishMessage(messageID)
- packet = <-channel
- if packet == nil {
- return NewError(ErrorNetwork, errors.New("ldap: could not retrieve response"))
- }
-
if l.Debug {
if err := addLDAPDescriptions(packet); err != nil {
return err
@@ -327,11 +322,6 @@ func (l *Conn) Ping() error {
ber.PrintPacket(packet)
}
- resultCode, resultDescription := getLDAPResultCode(packet)
- if resultCode != 0 {
- return NewError(resultCode, errors.New(resultDescription))
- }
-
return nil
}