Subject | Re: [IBO] Database Login Detail |
---|---|
Author | Helen Borrie |
Post date | 2005-10-24T04:30:39Z |
At 03:55 AM 24/10/2005 +0000, you wrote:
database engine doesn't know about OS usernames.
You could look into IBO's "two-layer" login to help with this. This allows
you to prepend a prefix to the user name and role at the client. If you
decided to do (1) you could assign each user a "signature" prefix that you
would write to your log table at each login. See the IB_Connection
properties LoginUsername, LoginUsernamePrefix, LoginSQLRole and
LoginSQLRolePrefix. Use the AfterConnect even to do this logging and make
*certain* that you hard-commit immediately after inserting to the table.
Helen
>Hi there,No. It's not supported by the database engine.
>
>Our Delphi application uses one login name (e.g.: SYSDBA) and password
>to the Database connection, but this would not tell us who/which
>computer is running the application when there is more than one session.
>
>Is there a property in IBObject that allows us to keep track
>the logged in computer name
>or user nameYes, but if everyone logs in as SYSDBA, this isn't any use to you. The
database engine doesn't know about OS usernames.
>or otherwise provides distinguishing information we may use thus.You could set up your own database-level login log and store whatever you like.
You could look into IBO's "two-layer" login to help with this. This allows
you to prepend a prefix to the user name and role at the client. If you
decided to do (1) you could assign each user a "signature" prefix that you
would write to your log table at each login. See the IB_Connection
properties LoginUsername, LoginUsernamePrefix, LoginSQLRole and
LoginSQLRolePrefix. Use the AfterConnect even to do this logging and make
*certain* that you hard-commit immediately after inserting to the table.
Helen