Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: RE: Slightly OT: Java in the DB

RE: RE: Slightly OT: Java in the DB

From: Cary Millsap <cary.millsap_at_hotsos.com>
Date: Tue, 24 Feb 2004 09:44:13 -0600
Message-ID: <006801c3faed$0d7f8540$d06a8640@CVMLAP02>


Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit

Can someone type the following response into your form's field?  

            fake-password' OR 'x'='x  

That's an example of SQL injection. Type "sql injection" to google, and you'll get several thousand more examples.  

Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com
Nullius in verba

Upcoming events:
- Performance <http://www.hotsos.com/training/PD101.html> Diagnosis
101: 2/24 San Diego, 3/23 Park City, 4/6 Seattle
- Hotsos Symposium 2004 <http://www.hotsos.com/events/symposium/2004> :
March 7-10 Dallas
- Visit www.hotsos.com for schedule details...

-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of ryan.gaffuri_at_cox.net Sent: Tuesday, February 24, 2004 9:29 AM To: oracle-l_at_freelists.org
Subject: Re: RE: Slightly OT: Java in the DB  

No...each user has to enter their own old password into a

field on the web form, then enter their new password. If

the old password is incorrect, the process *should* throw

an error.  

The only way Bob could change Susan's password is if he

knows the old one. That never happens, does it? ;)  

But that does give me the idea of an administrator-type

function to change another user's password, similar to

a DBA's use of 'alter user...'.  

And I know I am displaying my ignorance here, but what is

'SQL Injection'?  

Cheers,

Mike  

-----Original Message-----
From: Jared.Still_at_radisys.com [mailto:Jared.Still_at_radisys.com] Sent: Monday, February 23, 2004 5:52 PM
To: oracle-l_at_freelists.org
Subject: RE: Slightly OT: Java in the DB

I'm not a security expert, but it seems to me there are some exploits you would need to take into consideration.

SQL Injection comes to mind.

Also, if 2+ users have expired passwords, do you have a mechanism to prevent user Bob (with an expired account ) from changing Susans password ( also expired ) ?

Are the passwords generated and then mailed to the correct user?

Jared  

"Vergara, Michael (TEM)" <mvergara_at_guidant.com> Sent by: oracle-l-bounce_at_freelists.org

 02/23/2004 03:20 PM
 Please respond to oracle-l

        
        To:        <oracle-l_at_freelists.org> 
        cc:         
        Subject:        RE: Slightly OT: Java in the DB




Ahhh...but that's the trick! The user's only authentication is to the admin database. Once the user clicks on 'Submit' I was intending to hand it off to a PL/SQL module owned by an admin user. The 'real' user never sees that part.   

-----Original Message-----
From: Jared.Still_at_radisys.com [mailto:Jared.Still_at_radisys.com] Sent: Monday, February 23, 2004 3:09 PM
To: oracle-l_at_freelists.org
Subject: RE: Slightly OT: Java in the DB

Creating an app that allows users to connect to the database as a DBA to change a passwords sounds like it have good potential for security holes.

You sure you want to do this?

How often does a user with an expired account really need to do this?

Jared  

"Vergara, Michael (TEM)" <mvergara_at_guidant.com> Sent by: oracle-l-bounce_at_freelists.org

 02/23/2004 01:11 PM
Please respond to oracle-l

        
       To:        <oracle-l_at_freelists.org> 
       cc:         
       Subject:        RE: Slightly OT: Java in the DB





What I am trying to do seems so simple that I still cannot believe I'm not done yet!

I want to build a web page where a 'normal' (non-privileged) user can go, enter his/her login, see a list of the DB's where he/she has an account, enter a new password, click a checkbox (or -boxes), and have the web page call a <Choose- -utility-here> routine to go out and update the user's password on the selected DBs.

I can do everything except get the DB update to work.

There's no daemon. This is intended to be an on-demand utility. There's a central server/instance that has definitions to all the DBs in the TNSNAMES.ORA file. From this DB I harvest the user logins nightly, to build the list to present to the user. I *know* I can connect, although to do the harvest I create a temporary database link, instead of using Java or whatever.

It's the silly step of changing the password. The problem is that the user may wait until after the p/w has expired, so they cannot log in. I found the OCINewPassword routine will do a password change even on a expired login. But ARG! This is the second (or is it third) method I've tried and they have all had one kind of issue or another.

Any more suggestions?

Thanks,
Mike

-----Original Message-----
From: Mladen Gogala [mailto:mladen_at_wangtrading.com] Sent: Monday, February 23, 2004 12:21 PM To: oracle-l_at_freelists.org
Subject: Re: Slightly OT: Java in the DB

Exactly what are you trying to do? For having a daemon (or demon, for that matter) lurking in the darnkness of the central server and resetting expired passwords, the daemon needs to maintain a permanent connection with sufficient privileges to change any user's password, typically, a dba connection. If your DBA doesn't use profiles, with the idle time limitation, you can have a permanently connected process which would change password as soon as it was signalled to him. The question is: what would the password be changed to? There are strings which are extremely hard tu guess (username, "qwerty", "password", "tiger")
and which would make your username secure. At one of my places of work, I've witnessed the following story: a tech support expert leaves a unix worsktation logged in, as root, and goes home at 6 PM, when cleaning
ladies entered the office. One of the cleaning ladies had a 14 years old son which wanted to check the old joke with "rm -rf /". He found out that it really does destroy everything on a unix system. Now, you are absent,
your password expires at 7 P.M. and there is an eager help desk person who
wants to test "drop tablescpace FIN_DATA including contents and datafiles
cascade constraints" that he or she has seen written somewhere. I'll leave
the rest of the story to you.



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------





------=_NextPart_000_0069_01C3FABA.C2E51540
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:sans-serif;
	panose-1:0 0 0 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
p
	{margin-right:0in;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman";}
span.EmailStyle18
	{font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Can someone type the following =
response
into your form&#8217;s field?</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fake-password&#8217; OR =
&#8216;x&#8217;=3D&#8217;x</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>That&#8217;s an example of SQL =
injection.
Type &#8220;sql injection&#8221; to google, and you&#8217;ll get several
thousand more examples.</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<div>

<p><b><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;
   =
font-family:Arial;color:navy;font-weight:bold'>Cary</span></font></b><b><=
font
 size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;
 color:navy;font-weight:bold'> Millsap</span></font></b><font size=3D2
color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;
color:navy'><br>
Hotsos Enterprises, Ltd.<br>
<a href=3D"http://www.hotsos.com">http://www.hotsos.com</a><br>
</span></font><em><i><font color=3Dnavy face=3D"Times New Roman"><span
style=3D'color:navy'>Nullius in verba</span></font></i></em><font =
size=3D2
color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;
color:navy'><br>
<br>
Upcoming events:<br>

- <a href=3D"http://www.hotsos.com/training/PD101.html">Performance
Diagnosis&nbsp;101</a>: 2/24 San Diego, 3/23 Park City, 4/6 Seattle<br>
- <a href=3D"http://www.hotsos.com/events/symposium/2004">Hotsos =
Symposium 2004</a>: March 7&#8211;10 Dallas<br>
- Visit <a href=3D"http://www.hotsos.com">www.hotsos.com</a> for =
schedule details...</span></font></p> </div> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 = face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original = Message-----<br> <b><span style=3D'font-weight:bold'>From:</span></b> oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] = <b><span style=3D'font-weight:bold'>On Behalf Of = </span></b>ryan.gaffuri_at_cox.net<br> <b><span style=3D'font-weight:bold'>Sent:</span></b> Tuesday, February = 24, 2004 9:29 AM<br> <b><span style=3D'font-weight:bold'>To:</span></b> </span></font><font = size=3D2 face=3DTahoma><span = style=3D'font-size:10.0pt;font-family:Tahoma'>oracle-l_at_freelists.org</spa= n></font><font size=3D2 face=3DTahoma><span = style=3D'font-size:10.0pt;font-family:Tahoma'><br> <b><span style=3D'font-weight:bold'>Subject:</span></b> Re: RE: Slightly = OT: Java in the DB</span></font></p> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 = face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>&nbsp;</span></font></p> <div> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 = color=3Dblue face=3D"Courier New"><span = style=3D'font-size:10.0pt;font-family:"Courier New"; color:blue'>No...each user has to enter their own old password into = a</span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 = color=3Dblue face=3D"Courier New"><span = style=3D'font-size:10.0pt;font-family:"Courier New"; color:blue'>field on the web form, then enter their new password.&nbsp; = If</span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 = color=3Dblue face=3D"Courier New"><span = style=3D'font-size:10.0pt;font-family:"Courier New"; color:blue'>the old password is incorrect, the process *should* = throw</span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 = color=3Dblue face=3D"Courier New"><span = style=3D'font-size:10.0pt;font-family:"Courier New"; color:blue'>an error.</span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 = face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>&nbsp;</span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 = color=3Dblue face=3D"Courier New"><span = style=3D'font-size:10.0pt;font-family:"Courier New"; color:blue'>The only way Bob could change Susan's password is if = he</span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 = color=3Dblue face=3D"Courier New"><span = style=3D'font-size:10.0pt;font-family:"Courier New"; color:blue'>knows the old one.&nbsp; That never happens, does it?&nbsp; = ;)</span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 = face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>&nbsp;</span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 = color=3Dblue face=3D"Courier New"><span = style=3D'font-size:10.0pt;font-family:"Courier New"; color:blue'>But that does give me the idea of an = administrator-type</span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 = color=3Dblue face=3D"Courier New"><span = style=3D'font-size:10.0pt;font-family:"Courier New"; color:blue'>function to change another user's password, similar = to</span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 = color=3Dblue face=3D"Courier New"><span = style=3D'font-size:10.0pt;font-family:"Courier New"; color:blue'>a DBA's use of 'alter user...'.</span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 = face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>&nbsp;</span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 = color=3Dblue face=3D"Courier New"><span = style=3D'font-size:10.0pt;font-family:"Courier New"; color:blue'>And I know I am displaying my ignorance here, but what = is</span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 = color=3Dblue face=3D"Courier New"><span = style=3D'font-size:10.0pt;font-family:"Courier New"; color:blue'>'SQL Injection'?</span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 = face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>&nbsp;</span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 = color=3Dblue face=3D"Courier New"><span = style=3D'font-size:10.0pt;font-family:"Courier New"; color:blue'>Cheers,</span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 = color=3Dblue face=3D"Courier New"><span = style=3D'font-size:10.0pt;font-family:"Courier New"; color:blue'>Mike</span></font></p> </div> <div> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 = face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>&nbsp;</span></font></p> </div> <blockquote style=3D'margin-top:5.0pt;margin-bottom:5.0pt'> <p class=3DMsoNormal = style=3D'margin-right:0in;margin-bottom:12.0pt;margin-left: .5in'><font size=3D2 face=3DTahoma><span = style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br> <b><span style=3D'font-weight:bold'>From:</span></b> = Jared.Still_at_radisys.com [mailto:Jared.Still_at_radisys.com]<br> <b><span style=3D'font-weight:bold'>Sent:</span></b> Monday, February = 23, 2004 5:52 PM<br> <b><span style=3D'font-weight:bold'>To:</span></b> = oracle-l_at_freelists.org<br> <b><span style=3D'font-weight:bold'>Subject:</span></b> RE: Slightly OT: = Java in the DB</span></font></p> <p class=3DMsoNormal = style=3D'margin-right:0in;margin-bottom:12.0pt;margin-left: .5in'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'><br> </span></font><font size=3D2 face=3Dsans-serif><span = style=3D'font-size:10.0pt; font-family:sans-serif'>I'm not a security expert, but it seems to me = there are some </span></font><br> <font size=3D2 face=3Dsans-serif><span = style=3D'font-size:10.0pt;font-family:sans-serif'>exploits you would need to take into consideration.</span></font> <br> <br> <font size=3D2 face=3Dsans-serif><span = style=3D'font-size:10.0pt;font-family:sans-serif'>SQL Injection comes to mind.</span></font> <br> <br> <font size=3D2 face=3Dsans-serif><span = style=3D'font-size:10.0pt;font-family:sans-serif'>Also, if 2+ users have expired passwords, do you have a</span></font> <br> <font size=3D2 face=3Dsans-serif><span = style=3D'font-size:10.0pt;font-family:sans-serif'>mechanism to prevent user Bob (with an expired account )</span></font> <br> <font size=3D2 face=3Dsans-serif><span = style=3D'font-size:10.0pt;font-family:sans-serif'>from changing Susans password ( also expired ) ?</span></font> <br> <br> <font size=3D2 face=3Dsans-serif><span = style=3D'font-size:10.0pt;font-family:sans-serif'>Are the passwords generated and then mailed to the correct = user?</span></font> <br> <br> <font size=3D2 face=3Dsans-serif><span = style=3D'font-size:10.0pt;font-family:sans-serif'>Jared</span></font> <br> <font size=3D2 face=3Dsans-serif><span = style=3D'font-size:10.0pt;font-family:sans-serif'><br> </span></font><br> <br> </p> <table class=3DMsoNormalTable border=3D0 cellpadding=3D0 width=3D"100%" style=3D'width:100.0%;margin-left:.5in'> <tr> <td valign=3Dtop style=3D'padding:.75pt .75pt .75pt .75pt'> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>&nbsp;</span></font></p> </td> <td valign=3Dtop style=3D'padding:.75pt .75pt .75pt .75pt'> <p class=3DMsoNormal><b><font size=3D1 face=3Dsans-serif><span = style=3D'font-size: 7.5pt;font-family:sans-serif;font-weight:bold'>&quot;Vergara, Michael (TEM)&quot; &lt;mvergara_at_guidant.com&gt;</span></font></b> <br> <font size=3D1 face=3Dsans-serif><span = style=3D'font-size:7.5pt;font-family:sans-serif'>Sent by: oracle-l-bounce_at_freelists.org</span></font> </p> <p><font size=3D1 face=3Dsans-serif><span = style=3D'font-size:7.5pt;font-family: sans-serif'>&nbsp;02/23/2004 03:20 PM</span></font> <br> <font size=3D2 face=3Dsans-serif><span = style=3D'font-size:10.0pt;font-family:sans-serif'>&nbsp;</span></font><fo= nt size=3D1 face=3Dsans-serif><span = style=3D'font-size:7.5pt;font-family:sans-serif'>Please respond to oracle-l</span></font> </p> </td> <td valign=3Dtop style=3D'padding:.75pt .75pt .75pt .75pt'> <p class=3DMsoNormal><font size=3D1 face=3DArial><span = style=3D'font-size:7.5pt; font-family:Arial'>&nbsp; &nbsp; &nbsp; &nbsp; </span></font><br> <font size=3D1 face=3Dsans-serif><span = style=3D'font-size:7.5pt;font-family:sans-serif'>&nbsp; &nbsp; &nbsp; &nbsp; To: &nbsp; &nbsp; &nbsp; = &nbsp;&lt;oracle-l_at_freelists.org&gt;</span></font> <br> <font size=3D1 face=3Dsans-serif><span = style=3D'font-size:7.5pt;font-family:sans-serif'>&nbsp; &nbsp; &nbsp; &nbsp; cc: &nbsp; &nbsp; &nbsp; &nbsp;</span></font> = <br> <font size=3D1 face=3Dsans-serif><span = style=3D'font-size:7.5pt;font-family:sans-serif'>&nbsp; &nbsp; &nbsp; &nbsp; Subject: &nbsp; &nbsp; &nbsp; &nbsp;RE: Slightly = OT: Java in the DB</span></font></p> </td> </tr> </table> <p class=3DMsoNormal = style=3D'margin-right:0in;margin-bottom:12.0pt;margin-left: .5in'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'><br> <br> <br> </span></font><font size=3D2 color=3Dblue face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier = New";color:blue'>Ahhh...but that's the trick! &nbsp;The user's only authentication is</span></font> <br> <font size=3D2 color=3Dblue face=3D"Courier New"><span = style=3D'font-size:10.0pt; font-family:"Courier New";color:blue'>to the admin database. &nbsp;Once = the user clicks on 'Submit' I</span></font> <br> <font size=3D2 color=3Dblue face=3D"Courier New"><span = style=3D'font-size:10.0pt; font-family:"Courier New";color:blue'>was intending to hand it off to a = PL/SQL module owned by an</span></font> <br> <font size=3D2 color=3Dblue face=3D"Courier New"><span = style=3D'font-size:10.0pt; font-family:"Courier New";color:blue'>admin user. &nbsp;The 'real' user = never sees that part.</span></font> <br> &nbsp; <br> <font size=3D2 face=3DTahoma><span = style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<b><span style=3D'font-weight:bold'><br> From:</span></b> Jared.Still_at_radisys.com = [mailto:Jared.Still_at_radisys.com]<b><span style=3D'font-weight:bold'><br> Sent:</span></b> Monday, February 23, 2004 3:09 PM<b><span = style=3D'font-weight: bold'><br> To:</span></b> oracle-l_at_freelists.org<b><span = style=3D'font-weight:bold'><br> Subject:</span></b> RE: Slightly OT: Java in the DB<br> </span></font><br> <font size=3D2 face=3Dsans-serif><span = style=3D'font-size:10.0pt;font-family:sans-serif'><br> Creating an app that allows users to connect to the database as = a</span></font> <font size=3D2 face=3Dsans-serif><span = style=3D'font-size:10.0pt;font-family:sans-serif'><br> DBA to change a passwords sounds like it have good = potential</span></font> <font size=3D2 face=3Dsans-serif><span = style=3D'font-size:10.0pt;font-family:sans-serif'><br> for security holes.</span></font> <br> <font size=3D2 face=3Dsans-serif><span = style=3D'font-size:10.0pt;font-family:sans-serif'><br> You sure you want to do this?</span></font> <br> <font size=3D2 face=3Dsans-serif><span = style=3D'font-size:10.0pt;font-family:sans-serif'><br> How often does a user with an expired account really need to do = this?</span></font> <br> <font size=3D2 face=3Dsans-serif><span = style=3D'font-size:10.0pt;font-family:sans-serif'><br> Jared</span></font> <br> <br> </p> <table class=3DMsoNormalTable border=3D0 cellpadding=3D0 width=3D"100%" style=3D'width:100.0%;margin-left:.5in'> <tr> <td width=3D"2%" valign=3Dtop style=3D'width:2.02%;padding:.75pt .75pt = .75pt .75pt'> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>&nbsp;</span></font></p> </td> <td width=3D"54%" valign=3Dtop style=3D'width:54.34%;padding:.75pt = .75pt .75pt .75pt'> <p class=3DMsoNormal><b><font size=3D1 face=3Dsans-serif><span = style=3D'font-size: 7.5pt;font-family:sans-serif;font-weight:bold'>&quot;Vergara, Michael (TEM)&quot; &lt;mvergara_at_guidant.com&gt;</span></font></b> <font = size=3D1 face=3Dsans-serif><span = style=3D'font-size:7.5pt;font-family:sans-serif'><br> Sent by: oracle-l-bounce_at_freelists.org</span></font> </p> <p><font size=3D1 face=3Dsans-serif><span = style=3D'font-size:7.5pt;font-family: sans-serif'>&nbsp;02/23/2004 01:11 PM</span></font> <font size=3D2 face=3Dsans-serif><span = style=3D'font-size:10.0pt;font-family:sans-serif'><br> </span></font><font size=3D1 face=3Dsans-serif><span = style=3D'font-size:7.5pt; font-family:sans-serif'>Please respond to oracle-l</span></font> </p> </td> <td width=3D"42%" valign=3Dtop style=3D'width:42.26%;padding:.75pt = .75pt .75pt .75pt'> <p class=3DMsoNormal><font size=3D1 face=3DArial><span = style=3D'font-size:7.5pt; font-family:Arial'>&nbsp; &nbsp; &nbsp; &nbsp; </span></font><font = size=3D1 face=3Dsans-serif><span = style=3D'font-size:7.5pt;font-family:sans-serif'><br> &nbsp; &nbsp; &nbsp; &nbsp;To: &nbsp; &nbsp; &nbsp; = &nbsp;&lt;oracle-l_at_freelists.org&gt;</span></font> <font size=3D1 face=3Dsans-serif><span = style=3D'font-size:7.5pt;font-family:sans-serif'><br> &nbsp; &nbsp; &nbsp; &nbsp;cc: &nbsp; &nbsp; &nbsp; = &nbsp;</span></font> <font size=3D1 face=3Dsans-serif><span = style=3D'font-size:7.5pt;font-family:sans-serif'><br> &nbsp; &nbsp; &nbsp; &nbsp;Subject: &nbsp; &nbsp; &nbsp; &nbsp;RE: = Slightly OT: Java in the DB</span></font></p> </td> </tr> </table> <p class=3DMsoNormal = style=3D'margin-right:0in;margin-bottom:12.0pt;margin-left: .5in'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'><br> <br> <br> </span></font><font size=3D2 face=3D"Courier New"><span = style=3D'font-size:10.0pt; font-family:"Courier New"'><br> What I am trying to do seems so simple that I still cannot <br> believe I'm not done yet!<br> <br> I want to build a web page where a 'normal' (non-privileged)<br> user can go, enter his/her login, see a list of the DB's<br> where he/she has an account, enter a new password, click a<br> checkbox (or -boxes), and have the web page call a &lt;Choose-<br> the-utility-here&gt; routine to go out and update the user's<br> password on the selected DBs.<br> <br> I can do everything except get the DB update to work.<br> <br> There's no daemon. &nbsp;This is intended to be an on-demand <br> utility. &nbsp;There's a central server/instance that has<br> definitions to all the DBs in the TNSNAMES.ORA file. &nbsp;From<br> this DB I harvest the user logins nightly, to build the = list</span></font> <br> <font size=3D2 face=3D"Courier New"><span = style=3D'font-size:10.0pt;font-family:"Courier New"'>to present to the user. &nbsp;I *know* I can connect, although to<br> do the harvest I create a temporary database link, instead of<br> using Java or whatever.<br> <br> It's the silly step of changing the password. &nbsp;The problem is<br> that the user may wait until after the p/w has expired, so they<br> cannot log in. &nbsp;I found the OCINewPassword routine will do a<br> password change even on a expired login. &nbsp;But ARG! &nbsp;This = is<br> the second (or is it third) method I've tried and they have all<br> had one kind of issue or another.<br> <br> Any more suggestions?<br> <br> Thanks,<br> Mike<br> <br> <br> -----Original Message-----<br> From: Mladen Gogala [mailto:mladen_at_wangtrading.com]<br> Sent: Monday, February 23, 2004 12:21 PM<br> To: oracle-l_at_freelists.org<br> Subject: Re: Slightly OT: Java in the DB<br> <br> <br> Exactly what are you trying to do? For having a daemon (or demon,<br> for that matter) lurking in the darnkness of the central server and<br> resetting expired passwords, the daemon needs to maintain a = permanent<br> connection with sufficient privileges to change any user's password,<br> typically, a dba connection. If your DBA doesn't use profiles, with <br> the idle time limitation, you can have a permanently connected process = <br> which would change password as soon as it was signalled to him. The <br> question is: what would the password be changed to? There are = strings<br> which are extremely hard tu guess (username, &quot;qwerty&quot;, &quot;password&quot;, &quot;tiger&quot;)<br> and which would make your username secure. At one of my places of<br> work, I've witnessed the following story: a tech support expert = leaves<br> a unix worsktation logged in, as root, and goes home at 6 PM, when = cleaning <br> ladies entered the office. One of the cleaning ladies had a 14 years = old<br> son which wanted to check the old joke with &quot;rm -rf /&quot;. = &nbsp;He found out <br> that it really does destroy everything on a unix system. Now, you are = absent,<br> your password expires at 7 P.M. and there is an eager help desk person = who<br> wants to test &quot;drop tablescpace FIN_DATA including contents and = datafiles <br> cascade constraints&quot; that he or she has seen written somewhere. = I'll leave <br> the rest of the story to you.<br> <br> ----------------------------------------------------------------<br> Please see the official ORACLE-L FAQ: http://www.orafaq.com<br> ----------------------------------------------------------------<br> To unsubscribe send email to: &nbsp;oracle-l-request_at_freelists.org<br> put 'unsubscribe' in the subject line.<br> --<br> Archives are at http://www.freelists.org/archives/oracle-l/<br> FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html<br> -----------------------------------------------------------------</span><= /font><br> <br> <br> </p> </blockquote> </div> </body> </html> ------=_NextPart_000_0069_01C3FABA.C2E51540-- ---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line. -- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------
Received on Tue Feb 24 2004 - 09:45:16 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US