|
|
How do you lock down phpMyAdmin?
What technique do you folks use to keep your passwords and user names out of
the phpMyAdmin config.inc file.
Thanks,
Al
|
|
0
|
|
|
|
Reply
|
atakeoutcanton1 (26)
|
9/21/2003 2:49:58 PM |
|
> What technique do you folks use to keep your passwords and user names out
of
> the phpMyAdmin config.inc file.
use the http auth which is included?!
yours, dreamguard.
--
"Ich bin Vegetarier und Antialkoholiker,
weil ich so besseren Gebrauch von meinem
Gehirn machen kann!"
--
Author: Thomas A. Edison (1847 - 1931)
|
|
0
|
|
|
|
Reply
|
dreamguard (6)
|
9/21/2003 3:07:37 PM
|
|
In article <3f6dbea3$0$32876$91cee783@newsreader01.highway.telekom.at>,
"Wolfgang 'Dreamguard' Nagele" <dreamguard@dreamguard.at> wrote:
> > What technique do you folks use to keep your passwords and user names out
> of
> > the phpMyAdmin config.inc file.
> use the http auth which is included?!
But http auth sends your username and password in the clear over the
network.
I use 'config' authentication without the password in the config.inc.php
like this:
I put a file (say, 'worteltje_boven.inc.php') which contains my password
outside the document root somewhere. I define my password in that file:
define('WORTELTJE_BOVEN', 'secret_password');
I then 'require' that file at the top of the config.inc.php:
require('/path/to/worteltje_boven.inc.php');
And then I do this:
$cfg['Servers'][$i]['password'] = WORTELTJE_BOVEN;
JP
--
Sorry, <devnull@cauce.org> is een "spam trap".
E-mail adres is <jpk"at"akamail.com>, waarbij "at" = @.
|
|
0
|
|
|
|
Reply
|
devnull3411 (192)
|
9/21/2003 3:26:38 PM
|
|
Jan Pieter Kunst wrote:
> In article <3f6dbea3$0$32876$91cee783@newsreader01.highway.telekom.at>,
> "Wolfgang 'Dreamguard' Nagele" <dreamguard@dreamguard.at> wrote:
>
>> > What technique do you folks use to keep your passwords and user names out
>> of
>> > the phpMyAdmin config.inc file.
>> use the http auth which is included?!
>
> But http auth sends your username and password in the clear over the
> network.
>
> I use 'config' authentication without the password in the config.inc.php
> like this:
>
> I put a file (say, 'worteltje_boven.inc.php') which contains my password
> outside the document root somewhere. I define my password in that file:
>
> define('WORTELTJE_BOVEN', 'secret_password');
>
> I then 'require' that file at the top of the config.inc.php:
>
> require('/path/to/worteltje_boven.inc.php');
>
> And then I do this:
>
> $cfg['Servers'][$i]['password'] = WORTELTJE_BOVEN;
>
> JP
>
Yes, this looks good. Why do you use a CONSTANT instead of plain old
variable? Are they somehow more secure?
Here is something that I do for my own apps. I have a file like you have. But
instead of the the real password run it through an encryptor that I have and
end up with something like $mypass="wouydos8737sl72lsh;als8".
I then "include" the file with these encrypted variables and run them through
the decrypt routine (a rather short PHP class) and plug that result into
session variables.
What I could do for myphpadmin config is something similar. I just thought
there might be an easier way.
|
|
0
|
|
|
|
Reply
|
atakeoutcanton1 (26)
|
9/21/2003 4:40:01 PM
|
|
In article <Bvkbb.1004$vS.471@newsread3.news.pas.earthlink.net>,
"Adams-Blake Co." <atakeoutcanton@adams.takeme.out.-blake.com> wrote:
> Yes, this looks good. Why do you use a CONSTANT instead of plain old
> variable? Are they somehow more secure?
There is no particular reason I used a constant instead of a variable in
this case. Now that I think of it, constants may be more secure than
variables in the sense that they can't be redefined during execution of
the script, so there is no way that someone can maliciously change their
values to something evil. But I don't think that applies to this
phpmyadmin setup. (A changed value for the mysql password would simply
not work.)
JP
--
Sorry, <devnull@cauce.org> is een "spam trap".
E-mail adres is <jpk"at"akamail.com>, waarbij "at" = @.
|
|
0
|
|
|
|
Reply
|
devnull3411 (192)
|
9/21/2003 6:00:18 PM
|
|
|
4 Replies
32 Views
(page loaded in 0.111 seconds)
Similiar Articles: Reliability of file locks on share between Windows and Solaris ...How do you address this type of resource sharing? ... the processes on Solaris will attempt to get > a lock ... file opening slows down - puzzling - comp.lang.xharbour Locking out users by name for direct login. Allow SU - only - comp ...You do not want to lock the accounts of those users ... for particular users - comp.unix.solaris ... Restrict login account to SU access only ... Solaris 9 - Root Password Expired - Can't SU to root. - comp.unix ...... second time I encountered this problem, where the root password expires, and you ... login or su with root ... Expired Root Account/Password for Solaris 8 Hi, I locked down my ... pkgrm problems - comp.unix.solarisHow do I debug this problem? After this, there is a lock file under /var/sadm/pkg/MYPKG ... Shekar pkgrm -v MYPKG will tell you ... in their name, so write down only the ... FM demod using PLL - comp.dspIf there is no sign of the carrier then that woudl explain why > > the PLL cannot lock. When you down-convert maybe the IF filter is set at > > the wrong centre frequency. Database corrupt...how to backup? - comp.databases.mysql ...... before the attempt to install phpBB3), but phpMyAdmin ... there is a good chance it works again - what do you ... 100519 12:40:33 InnoDB: Database was not shut down ... How to find how many file locks are being used by a process - comp ...I am using HP UNIX 11i. It is a production system. We are lunnnnig out of no of file locks (nflocks). I want tro nail down which process is causing th... mysqldump not including auto_increment statements - comp.databases ...However, phpMyAdmin creates a table the way I already ... If you run a mysqldump with --skip-opt, do you get the ... add- locks, --all, --extended-insert, --quick, --lock ... access2007 - Could not update; currently locked - comp.databases ...... company I work for is currently in the process ... Looking back, I could not of made an informed decision ... they would all say they wish the group could be locked down ... Busted Key? One fix from home. - comp.sys.hp48What do you attach the bandaid to ? I am new to this ... I broke this down pretty far, but it's not too ... How to Repair a Broken Key While It's in the Lock: 12 steps You've ... PHP :: How Do You Lock Down PhpMyAdmin?MySQL Lock ? I have to increase a counter for each record I insert into a table (the value of the counter is stored in the record). I cannot use 'auto_increment' phpMyAdminAbout. phpMyAdmin is a free software tool written in PHP, intended to handle the administration of MySQL over the World Wide Web. phpMyAdmin supports a wide range of ... 7/15/2012 12:32:56 PM
|
|
|
|
|
|
|
|
|