Closed mark-a-johnson closed 9 months ago
I use DialURL to connect Google LDAP. You can try this.
cert, err := tls.LoadX509KeyPair(certFile, keyFile)
if err != nil {
return nil, err
}
certs := []tls.Certificate{cert}
tlsConfig := &tls.Config{
ServerName: serverName,
Certificates: certs,
}
ldap.DialURL(url, ldap.DialWithTLSConfig(tlsConfig))
@mark-a-johnson Next time, you can ask a question on GitHub discussions.
Cloud Identity is $7.2/mo per user.
Has anyone connected to Google using this library? We've created a client in Google and get a cert, key (and username & password). How is the connection configured with the cert/key? Thanks!