Up Prev Next
From: Michael Peppler <mpeppler at MBAY dot NET>
Subject: (no subject)
Date: Dec 17 1998 12:46AM
>>>>> "David" == David Hajoglou writes:
David> My question is about the dbsetluser and dbsetlpw functions.
David> Where would I run these functions so as to avoid putting plain
David> text user and passwds in the script.
Actually DBSETLUSER and DBSETLPW aren't implemented in
Sybase::DBlib. You pass the username and password to the dblogin() or
One technique is to store this information in a file that is readable
only by the user running the script. In this case, assuming the web
server runs as user 'webuser' you would create a file that is readable
only by 'webuser' and which has two lines
(with appropriate values for these two lines, of course) and then your
code would do something like
open(IN, ".the_password_file") || die "ohlala!: $!";
my $dbh = new Sybase::DBlib $data, $data;
This is of course only one of several ways that this can be
Michael Peppler -||- Data Migrations Inc.
email@example.com -||- http://www.mbay.net/~mpeppler
Int. Sybase User Group -||- http://www.isug.com
Sybase on Linux mailing list: firstname.lastname@example.org