Unanswered: Two factor authentication for PostgreSQL server
I'm going to setup 2 factor authentication for my database server. I'm using PostgreSQL 9.4 DBMS on Ubuntu 14.10. I need to force two authentication methods for my database server. The authentication can use password and USB device methods. I need to set these methods on Database server(I don't mean operating system authentication)...
I already installed pamusb pakages :
sudo apt-get install pamusb-tools libpam-usb
Although I can add devices on my pamusb config file :
pamusb-conf --add-device MyDevice
I should define pamusb users and authentication methods. I added this lines to pamusb config between <users> tags :