After encryption is enabled for the fragmented cluster, login to mongos can be authenticated normally
mongos> use zlfzy
switched to db zlfzy
mongos> db.auth("zlfzy","zlfzy@666")
1
mongos> show collections
person
mongos>
But now I want to enable the system.profile function, which cannot be operated in mongos. to log in to each node under shard, it is impossible to authenticate when logging in to the node now
shard1:PRIMARY> use zlfzy
switched to db zlfzy
shard1:PRIMARY> db.auth("zlfzy","zlfzy@666")
Error: Authentication failed.
0
How should I operate? Can I log in and authenticate to a single node?
Well, I have found the answer myself. Cluster users cannot be used to authenticate links to a single shard node. Users must be established separately at the shard node.