Trigger force a logout?

Dennis Williams
2009-06-25T14:16:21+00:00

List,

To plug a security gap, I'm trying to create a trigger on a certain
username. If the trigger condition is met, the trigger would force a logout.
Is that possible?

Thanks for any suggestions,
Dennis Williams

Re: Trigger force a logout? by Andrew Kerber on 2009-06-25T14:25:46+00:00
yes, it is possible.  It would be a system trigger.

On Thu, Jun 25, 2009 at 9:15 AM, Dennis Williams <
oracledba.williams@gmail.com> wrote:

> List,
>
> To plug a security gap, I'm trying to create a trigger on a certain
> username. If the trigger condition is met, the trigger would force a logout.
> Is that possible?
>
> Thanks for any suggestions,
> Dennis Williams
>



'If at first you dont succeed, dont take up skydiving.'

Re: Trigger force a logout? by Adam Musch on 2009-06-25T14:29:23+00:00
One wonders why one doesn't simply lock the account.

ALTER USER bad-user ACCOUNT LOCK;

seems easier than writing a trigger.

Similarly, you may wish to explore auditing and system/application contexts
so that you could audit who's trying this account.

On Thu, Jun 25, 2009 at 9:25 AM, Andrew Kerber <andrew.kerber@gmail.com>wrote:

> yes, it is possible.  It would be a system trigger.
>
>
> On Thu, Jun 25, 2009 at 9:15 AM, Dennis Williams <
> oracledba.williams@gmail.com> wrote:
>
>> List,
>>
>> To plug a security gap, I'm trying to create a trigger on a certain
>> username. If the trigger condition is met, the trigger would force a logout.
>> Is that possible?
>>
>> Thanks for any suggestions,
>> Dennis Williams
>>
>
>
>
> 


Re: Trigger force a logout? by Andre van Winssen on 2009-06-25T14:36:05+00:00
account locking is not feasible when uncer certain conditions (eg source ip
address or timeslots of a day) the username would be allowed for login.

you can simply add a line with
raise-application-error(-2000,'sorry not allowed to login')
in your logon trigger code .

Andre

2009/6/25 Adam Musch <ahmusch@gmail.com>

> One wonders why one doesn't simply lock the account.
>
> ALTER USER bad-user ACCOUNT LOCK;
>
> seems easier than writing a trigger.
>
> Similarly, you may wish to explore auditing and system/application contexts
> so that you could audit who's trying this account.
>
>   On Thu, Jun 25, 2009 at 9:25 AM, Andrew Kerber <andrew.kerber@gmail.com>wrote:
>
>> yes, it is possible.  It would be a system trigger.
>>
>>
>> On Thu, Jun 25, 2009 at 9:15 AM, Dennis Williams <
>> oracledba.williams@gmail.com> wrote:
>>
>>> List,
>>>
>>> To plug a security gap, I'm trying to create a trigger on a certain
>>> username. If the trigger condition is met, the trigger would force a logout.
>>> Is that possible?
>>>
>>> Thanks for any suggestions,
>>> Dennis Williams
>>>
>>
>>
>>
>> >
> 

Re: Trigger force a logout? by Joey D'Antoni on 2009-06-25T14:37:42+00:00
What would your conditions be? It would be a system trigger.=0A=0A=0AOn Thu, Jun 25, 2009 at 9:15 AM, Den=
nis Williams <oracledba.williams@gmail.com> wrote:=0A=0AList,=0A>=0A>To plu=
g a security gap, I'm trying to create a trigger on a certain username. If =
the trigger condition is met, the trigger would force a logout. Is that pos=
sible?=0A>=0A>Thanks for any suggestions,=0A>Dennis Williams=0A=0A=0A..'=0A=0A=0A=0A      

Re: Trigger force a logout? by Dennis Williams on 2009-06-25T14:43:46+00:00
Adam,

As I mentioned, this is to plug a security gap. The password is embedded in
an application we can't alter. I have a way to detect whether the login is
coming from the application or elsewhere. My thought is to create a trigger
that does something if someone tries to login to the account and they aren't
coming from the application.
Not ideal, but then we don't always live in an ideal world.

Thanks for your ideas.
Dennis Williams

On Thu, Jun 25, 2009 at 9:28 AM, Adam Musch <ahmusch@gmail.com> wrote:

> One wonders why one doesn't simply lock the account.
>
> ALTER USER bad-user ACCOUNT LOCK;
>
> seems easier than writing a trigger.
>
> Similarly, you may wish to explore auditing and system/application contexts
> so that you could audit who's trying this account.
>
>   On Thu, Jun 25, 2009 at 9:25 AM, Andrew Kerber <andrew.kerber@gmail.com>wrote:
>
>> yes, it is possible.  It would be a system trigger.
>>
>>
>> On Thu, Jun 25, 2009 at 9:15 AM, Dennis Williams <
>> oracledba.williams@gmail.com> wrote:
>>
>>> List,
>>>
>>> To plug a security gap, I'm trying to create a trigger on a certain
>>> username. If the trigger condition is met, the trigger would force a logout.
>>> Is that possible?
>>>
>>> Thanks for any suggestions,
>>> Dennis Williams
>>>
>>
>>
>>
>> >
> 

Re: Trigger force a logout? by Dennis Williams on 2009-06-25T14:45:21+00:00
Joe,

Agreed, not bullet-proof, but hopefully much better than the current
situation.

Dennis

On Thu, Jun 25, 2009 at 9:30 AM, Joey D'Antoni <jdanton1@yahoo.com> wrote:

>  What would your conditions be?> Synthes USA
>
>  > yes, it is possible.  It would be a system trigger.
>
> On Thu, Jun 25, 2009 at 9:15 AM, Dennis Williams <
> oracledba.williams@gmail.com> wrote:
>
>> List,
>>
>> To plug a security gap, I'm trying to create a trigger on a certain
>> username. If the trigger condition is met, the trigger would force a logout.
>> Is that possible?
>>
>> Thanks for any suggestions,
>> Dennis Williams
>>
>
>
>
> 

RE: Trigger force a logout? by Powell, Mark D on 2009-06-25T15:54:39+00:00
We do this using a database event log on trigger.  If the username
follows a certain pattern then it must meet certain criteria for values
in v$session.  One of the keys to making this work is not to disclose
what values the routine tests against.  You have machine, program, and
the potentially the columns populated by dbms-application-info to use
plus sys-context information such as IP.  Use several.
=20
You can spoof the IP via java, you can spoof the program name, but if
the user does not know what is being tested against then spoofing all
the tests will not be that easy.  The solution may not be undefeatable,
but it is reasonably solid, IMHO.
=20

		=20
		ALTER USER bad-user ACCOUNT LOCK;
		=20
		seems easier than writing a trigger.
		=20
		Similarly, you may wish to explore auditing and
system/application contexts so that you could audit who's trying this
account.
	=09
	=09
		On Thu, Jun 25, 2009 at 9:25 AM, Andrew Kerber
<andrew.kerber@gmail.com> wrote:
	=09

			yes, it is possible.  It would be a system
trigger.=20


			On Thu, Jun 25, 2009 at 9:15 AM, Dennis Williams
<oracledba.williams@gmail.com> wrote:
		=09

				List,
				=20
				To plug a security gap, I'm trying to
create a trigger on a certain username. If the trigger condition is met,
the trigger would force a logout. Is that possible?
				=20
				Thanks for any suggestions,
				Dennis Williams




			


		
Loading


$ This page is proudly powered by www.pubbs.net, you can see more at oracle archive | Partners: Global Manufacturers