From dce4845c1df358dcefa21ef486b4f825a817c1f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Ebeling?= Date: Sat, 23 Jan 2021 17:50:34 +0100 Subject: [PATCH] Quirky bind authentication workaround --- client.go | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/client.go b/client.go index a174d36..e98a726 100644 --- a/client.go +++ b/client.go @@ -10,18 +10,19 @@ import ( ) type client struct { - Numero int - srv *Server - rwc net.Conn - br *bufio.Reader - bw *bufio.Writer - chanOut chan *ldap.LDAPMessage - wg sync.WaitGroup - closing chan bool - requestList map[int]*Message - mutex sync.Mutex - writeDone chan bool - rawData []byte + Numero int + Authenticated bool + srv *Server + rwc net.Conn + br *bufio.Reader + bw *bufio.Writer + chanOut chan *ldap.LDAPMessage + wg sync.WaitGroup + closing chan bool + requestList map[int]*Message + mutex sync.Mutex + writeDone chan bool + rawData []byte } func (c *client) GetConn() net.Conn {