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

Home -> Community -> Usenet -> c.d.o.misc -> Re: user/pwd in pro*c pgm

Re: user/pwd in pro*c pgm

From: Jeffery Cann <jcann_at_fairway.com>
Date: Wed, 17 Jun 1998 14:53:13 -0600
Message-ID: <35882CB9.13249AEA@fairway.com>


Lisa Lewis wrote:
>
> I was wondering how others keep there userid/pwd from being embedded in
> pro*c pgms. I know about the $OPS option....how safe is this? Can you
> connect to a database on a different server than the pro*c executable using
> the $OPS method? I have not been able to get this to work. What are other
> options?

I haven't used the $OPS method. I have used resource files (.rc files) (also known as .ini files on windows) to store username, password. The ..rc file lives in the $HOME directory of the user (on UNIX) and is parsed when the application starts up (use C function fscanf). This is fairly secure because the .rc file is under the influence of the Unix filesystem security/priviledges. It has the added bonus of being more flexible than the embedded method.

>
> Thanks!
> Lisa

--
Jeffery Cann
Fairway Systems, Inc.
Senior Software Engineer Received on Wed Jun 17 1998 - 15:53:13 CDT

Original text of this message

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