Solved

phpMyAdmin Login with IIS 6.0

Posted on 2006-06-15
2
305 Views
Last Modified: 2013-12-12
I have a secure website setup where users have to enter a username and password to enter the site. The password protection is setup in IIS. Some of my users use phpMyAdmin. Is there a way to login to phpMyAdmin automatically with the username and password they supplied when they logged into the site? Or, is there a way to retrieve the username and password they entered using php? Thanks.
0
Comment
Question by:rbichon
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
LinuxNubb earned 250 total points
ID: 16916087
You could look for $_SERVER['AUTH_USER'], and if it's a valid username it means the user authenticated.  This variable only works with IIS.  You would then have to do a type of 'hidden' login where you basically force a session on phpmyadmin.  So, if this variable is set, find the routine in phpmyadmin that validates a login and redirects to the phpmyadmin homepage.  
0
 
LVL 1

Author Comment

by:rbichon
ID: 16919322
I see what you mean. I could probably alter the config.inc.php file, which dictates how it should login, to search for the username and apply that along with the password. The only trick would be to encrypt the passwords.

I found another way of authenticating but it isn't run through IIS. In the config.inc.php file, you set $cfg['Servers'][$i]['auth_type'] = 'http'; which causes php to handle the authentication. The only problem is that this doesn't provide any directory security. Do you think this way posses any security issues? Keep in mind that we have a secure certificate in place and users have to connect through a secure connection.
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question