Preferably, this is what we would like to see for the login sequence:
Click OpenERP icon or select from system menu.
Welcome screen appears saying: Enter key [_______]
User enters their key (4-8 alphanumeric string)
(key is used to find the database list allowed for this key)
Now the regular Login screen appears with a restricted set of databases in the dropdown list.
On the server there would be a new table in a database (postgres db maybe?), let's call it 'db_allow'. It would have two fields:
Code:
'key': varchar(8)
'db': varchar(128) # varchar only allocates used space so let's be generous.
Create a universal user in postgres just for this table and only GRANT SELECT.
This user is used to access the table from the initial Key Submit screen.
Each key represents a select subset list of databases.
Create view for 'db_allow' so we can add some records for some keys and databases.
Regards,
Gerry