SP
command find requires authentication
простой метод Find() from mongodb
Size: a a a
SP
command find requires authentication
SP
h.mongo = '&{conn:0xc000116c40 logger:0xc000365320}'
4.5 - enabling authentication
So to enable authentication I need to find the mongod.cfg file that the mongod service is using and just make sure the follwing is in there.
security:
authorization: enabled
This will of course enable authentication when I restart the service. after restarting mongod, I will run into an authentication failure when trying to do something with the database when no credentials are given as expected.
Y
НМ
НМ
НМ
MG
НМ
Y
AS
MG
AS
MG
AS
MG
AM
AM
MG