HW1.5 Homework 1.5: Enabling Mixed Authentication Mechanisms

I did all the steps for mixed authentication but script validation fails

{ unauthorizedStatus: {“ok”:0,“errmsg”:“not authorized on admin to execute command { replSetGetStatus: 1.0 }”,“code”:13}, memberStatuses: [“PRIMARY”], users: [{"_id":“admin.will”,“roles”:[{“role”:“root”,“db”:“admin”}]},{"_id":"$external.C=US,ST=New York,L=New York City,O=MongoDB,OU=University2,CN=M310 Client",“roles”:[{“role”:“userAdminAnyDatabase”,“db”:“admin”}]}] }

Please don’t post answers irrespective of they are right or wrong
It is against forum guidelines

Is your replica setup complete?
Please check rs.status()
member status shows only primary

1 Like