Devices : one Mikrotik Device and one PGSQL database server.
Here,Mikrotik device will be use as a NAS and all the user details is in PGSQL dataserver.
Now ,is there any possibilities to create a communication between Mikrotik and PGSQL dataserver without any other server .
What will be the login flow-
When request will come from client to mIkrotik then Mikrotik will forward the request to local database server here have two options if the users has exist then Mikrotik will forward the request to Radius server for AAA portion and if the user is not present in the database then the request will drop automatically.