Prev | Current Page 45 | Next

Marc Delisle

"Mastering phpMyAdmin 2.11 for Effective MySQL Management"

First, we have to set the following parameter:
$cfg['AllowArbitraryServer'] = TRUE;
We also have to put back the default value of 1 into $cfg['ServerDefault']. Then,
we need to use the cookie authentication type, explained in the next section. We will
be able to choose the server and enter a username and a password.
This mechanism should probably be used in conjunction with a reinforced
security mechanism (see the Security section), because any MySQL server
accessible from our web server could be connected to.
As seen here, we still can choose one of the defined servers in Server Choice, but we
can enter an arbitrary server name, a username, and a password:
Chapter 2
[ 33 ]
Advanced Authentication
We might want to allow a single copy of phpMyAdmin to be used by a group of
persons, each having their own MySQL username and password and seeing only the
databases they have rights to. Or we might prefer to avoid having our username and
password in clear text in config.inc.php.
Authentication Types Offered
Instead of relying on a username/password pair stored in config.inc.php,
phpMyAdmin will communicate with the browser and get authentication data from
it. This enables true login for all users defined in a specific MySQL server, without
having to define them in the configuration file. There are three modes offered that
allow a controlled login to MySQL via phpMyAdmin: http , cookie and signon.


Pages:
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57