code: func handleBind(w ldap.ResponseWriter, m *ldap.Message) {
  	r := m.GetBindRequest()
  	res := ldap.NewBindResponse(ldap.LDAPResultSuccess)
  
  	if string(r.Name()) == "login" {
  		// w.Write(res)
  		return
  	}
  
  	log.Printf("Bind failed User=%s, Pass=%s", string(r.Name()), string(r.AuthenticationSimple()))
  	res.SetResultCode(ldap.LDAPResultInvalidCredentials)
  	res.SetDiagnosticMessage("invalid credentials")
  	w.Write(res)
  }
docs: // handleBind return Success if login == mysql