We are running on 5.0.24 version .
Trying to use self signed certs for internal authentication with config change as below -
net:
port: 27017
bindIpAll: true
tls:
mode: preferTLS
certificateKeyFile: /mongo/ssl3/node1.pem
clusterFile: /mongo/ssl3/node1.pem
CAFile: /mongo/ssl3/ca.pem
disabledProtocols: TLS1_0,TLS1_1
systemLog:
destination: file
logAppend: true
quiet: true
path: /mongo/mongo5.0.20/log/mongodb.log
logRotate: reopen
storage:
dbPath: /data/db
journal:
enabled: true
security:
authorization: enabled
clusterAuthMode: x509
#clusterAuthMode: sendKeyFile
#keyFile: /mongo/mongo4.4/key/mongodb.key
processManagement:
fork: true
pidFilePath: /mongo/mongo5.0.20/log/mongod.pid
replication:
replSetName: rs-poc
==============================================================
Even replication is working. I am getting continuous errors message -
{“t”:{“$date”:“2024-05-30T01:43:11.032+00:00”},“s”:“I”, “c”:“ACCESS”, “id”:5286202, “ctx”:“conn28”,“msg”:“Different user name was supplied to saslSupportedMechs”,“attr”:{“error”:{“code”:17,“codeName”:“ProtocolError”,“errmsg”:“Attempt to switch database target during SASL authentication.”}}}
{“t”:{“$date”:“2024-05-30T01:43:11.032+00:00”},“s”:“I”, “c”:“ACCESS”, “id”:5286202, “ctx”:“conn27”,“msg”:“Different user name was supplied to saslSupportedMechs”,“attr”:{“error”:{“code”:17,“codeName”:“ProtocolError”,“errmsg”:“Attempt to switch database target during SASL authentication.”}}}
{“t”:{“$date”:“2024-05-30T01:43:11.036+00:00”},“s”:“I”, “c”:“ACCESS”, “id”:5286202, “ctx”:“conn28”,“msg”:“Different user name was supplied to saslSupportedMechs”,“attr”:{“error”:{“code”:17,“codeName”:“ProtocolError”,“errmsg”:“Attempt to switch database target during SASL authentication.”}}}
{“t”:{“$date”:“2024-05-30T01:43:11.048+00:00”},“s”:“I”, “c”:“ACCESS”, “id”:5286202, “ctx”:“conn28”,“msg”:“Different user name was supplied to saslSupportedMechs”,“attr”:{“error”:{“code”:17,“codeName”:“ProtocolError”,“errmsg”:“Attempt to switch database target during SASL authentication.”}}}
Any clue?