Subject Re: [Firebird-Architect] Database triggers
Author Jim Starkey
Leyne, Sean wrote:
> Ann,
>
>
>>>> What account do the trigger run under?
>>>>
>>> Under account of user who initiated action. All proposed
>>>
> triggers
>
>>> fired at moment where valid user account is established
>>>
>> That really won't work for before connect or after disconnect
>>
> triggers.
>
> I agree; that really doesn't make sense.
>
> So, the question remains: What account should the trigger run under?
>
> Would it make sense for the trigger to run in the 'system' context?
>
>
>

Why not use the account that created the trigger? An alternative is to
give an account name as part of the trigger definition, but this opens a
security hole about the size of the Grand Canyon. And using the account
of the creator creates a really nasty problem for database restore.

--

Jim Starkey, Senior Software Architect
MySQL AB, www.mysql.com
978 526-1376