[nycphp-talk] accessing phpmyadmin as different users
Dan Horning
dan at mx2pro.com
Fri Oct 17 14:01:34 EDT 2003
Lets find out something
Are you trying to pass http passwords to it?
If so just change your auth_type to 'http' then you will use the http type login ..
Otherwise .. I have no idea what you're trying to do .. As you could pass the login and PW in a URL or in a form just like the one
on the login page phpMyAdmin uses. I'm not sure if this all helps .. So a plan of usage might allow me to be more direct.
--------------{ EXAMPLE }---------------------------------
On my servers I have a staff area with phpmyadmin located
Inside it. The auth_type is set to 'http' and so therefore
Since to get to the staff area requres a password.. So
Also does the [phpmyadmin) and each staff has their login
Which I've programmed in using htpasswd
----------------------------------------------------------
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
// with 'config' auth_type)
Dan Horning - President - MX2 Productions
Technical Systems Administration
Media from concept to execution.
1-866-284-3150 (Toll-Free)
http://www.mx2pro.com/
> -----Original Message-----
> From: talk-bounces at lists.nyphp.org
> [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Analysis &
> Solutions
> Sent: Friday, October 17, 2003 1:45 PM
> To: NYPHP Talk
> Subject: Re: [nycphp-talk] accessing phpmyadmin as different users
>
> Hi Nestor:
>
> > I tried it with $_GET and $_POST and with either of them I
> am able to
> > print the information in the
> > variables.
> >
> > But it fails
>
> Before I get too far, I thought phpMyAdmin has it's own login
> page. Why
> are you making another?
>
> Anyway, you need to learn how to do some debugging, step by step.
>
> You said you made a login page. Go to the script that login
> form gets
> submitted to. Put in echos for the variables you're
> submitting. Did your
> input get through? If not, there's your problem. But, if
> so, go to the
> next step.
>
> Now, you need to pass that information from there to the
> index.php, right?
> How are you passing it between the pages? Check in index.php
> that the
> information you supplied is getting there. If it's not, why
> not? If it
> is, then are you putting it in the right place to be accepted by the
> system?
>
> I hope you now get the idea of how to debug... think through
> your system,
> step by step, create tests that checking things at each step of the
> process.
>
> --Dan
>
> [... snipping old content, what a concept...]
>
> --
> FREE scripts that make web and database programming easier
> http://www.analysisandsolutions.com/software/
> T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
> 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
>
More information about the talk
mailing list