diff options
author | tmfkams <tmfkams@gmail.com> | 2014-02-02 19:00:45 +0100 |
---|---|---|
committer | Samuel Stauffer <samuel@descolada.com> | 2014-03-19 21:57:59 +0100 |
commit | 16e1575c86d09a0495b994341e9541a9fdfc6761 (patch) | |
tree | c3f1d00c0521f9857a3e81932ae10868b5596b3d /bind.go | |
parent | SSL/TLS with certificates (diff) | |
download | ldap-16e1575c86d09a0495b994341e9541a9fdfc6761.tar ldap-16e1575c86d09a0495b994341e9541a9fdfc6761.tar.gz ldap-16e1575c86d09a0495b994341e9541a9fdfc6761.tar.bz2 ldap-16e1575c86d09a0495b994341e9541a9fdfc6761.tar.lz ldap-16e1575c86d09a0495b994341e9541a9fdfc6761.tar.xz ldap-16e1575c86d09a0495b994341e9541a9fdfc6761.tar.zst ldap-16e1575c86d09a0495b994341e9541a9fdfc6761.zip |
Diffstat (limited to '')
-rw-r--r-- | bind.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -33,8 +33,8 @@ func (l *Conn) Bind(username, password string) *Error { return NewError(ErrorNetwork, errors.New("Could not send message")) } defer l.finishMessage(messageID) - packet = <-channel + packet = <-channel if packet == nil { return NewError(ErrorNetwork, errors.New("Could not retrieve response")) } @@ -46,9 +46,9 @@ func (l *Conn) Bind(username, password string) *Error { ber.PrintPacket(packet) } - result_code, result_description := getLDAPResultCode(packet) - if result_code != 0 { - return NewError(result_code, errors.New(result_description)) + resultCode, resultDescription := getLDAPResultCode(packet) + if resultCode != 0 { + return NewError(resultCode, errors.New(resultDescription)) } return nil |