"mongodb://myserver:27017/mydb?tls=true&tlsCaFile=%s&tlsClientCertificateKeyFile=%s&tlsClientCertificateKeyPassword=%s"
credential := options.Credential{
AuthMechanism: "SCRAM-SHA-1",
AuthSource: "mydb",
}credential.Username = "myuserid"
credential.PasswordSet = true
credential.Password = "mypassword"
clientOpts := options.Client().ApplyURI(uri).SetAuth(credential);I know AuthSource in options is redundant, but left it there just in case...Can somebody help please, have been struggling with this for past 3 days, trying to figure out what is wrong. With the same settings and code I am able to connect to older version of Mongodb.pleae help!
On Dec 11, 2019, at 7:50 AM, 'Divjot Arora' via mongodb-go-driver <mongodb-...@googlegroups.com> wrote:
--
You received this message because you are subscribed to the Google Groups "mongodb-go-driver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-go-dri...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-go-driver/a09e47de-a887-48c7-a1bc-ad39f3f31a2f%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-...@googlegroups.com.
On Dec 12, 2019, at 5:48 PM, 'Divjot Arora' via mongodb-go-driver <mongodb-...@googlegroups.com> wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-go-dri...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-go-driver/3f59163a-634e-4b77-8a46-eadf842f1e37%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-go-driver/3f59163a-634e-4b77-8a46-eadf842f1e37%40googlegroups.com.