Subject | Re: Can we "Lock Down" Firebird to keep users from tampering with data? |
---|---|
Author | mailmur |
Post date | 2006-03-20T14:44:20Z |
> I would look at a simple solution as follows:actual
> Hard code a user prefix to the user name in the frontend application
> ie if the user name is TOM and the hardcoded prefix is ABC the the
> user name in security.db is ABCTOMenter TOM
> The user only ever enters TOM as the user name so if he tries to
> outside the permitted interface it will be an invalid user nameI have used this trick previously and worked fine.
>
> Obviously you keep the prefix to yourselves
>
> reagrds Cao
_BUT_ I used a salt on password value only, so that getuser() sql
function would still return a valid usernames. Username was stored to
a modification histories and columns.