Hi,
I’m trying to delete a device from the mongodb and I can’t authenticate against the ace DB. When I use the unifi
user I invariably get
MongoServerError[AuthenticationFailed]: Authentication failed.
I connect into the container via podman exec -it unifi-db bash
and run
mongosh --username "unifi" --password --authenticationDatabase admin
then
use ace
and when I try to delete the device with
db.device.remove({"mac":"xx:yy:zz:aa:bb:dd"})
I get
MongoServerError[Unauthorized]: not authorized on ace to execute command { delete: "device", deletes: [ { q: { mac: "xx:yy:zz:aa:bb:cc" }, limit: 0 } ], ordered: true, lsid: { id: UUID("< redacted>") }, $db: "ace" }
Question: what user do I have to use to authenticate against the ace DB to be able to remove the device from the DB (the root user used to setup the db doesn’t work, either - not sure if that one is even around after the initial setup)?