title: Sharded Cluster authentication in mongodb 3.2.4
body: <p>I have 6 mongod server.</p>
  
  <p>2 shard with replica set of two servers each(totally 4 mongod server)
  2 config server 
  2 mongos which will run on shard server itself</p>
  
  <p>I would like to enable authentication on sharded cluster. I tried enabling --auth while starting the 6 mongod instances but it throwing below error.</p>
  
  <p>SHARDING [mongosMain] Error initializing sharding state, sleeping for 2 seconds and trying again :: caused by :: Unauthorized: could not get updated shard list from config server due to not authorized for query on config.shards</p>
  
  <p>How to enable authentication in sharded cluster? I'm using mongodb 3.2.4 version. </p>
  
  <p>How config server will communicate internally with other mongod server?</p>
  
  <p>Do i need to create user on each mongod separately in admin db?</p>
  
  <p>Please help me to understand this. </p>
  
  <p>-Thanks in advance. </p>