Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
quick and easy question on phpmyadmin security
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
intendedacceleration
n00b
n00b


Joined: 18 Nov 2003
Posts: 31
Location: Two Harbors, MN

PostPosted: Tue Dec 09, 2003 5:51 am    Post subject: quick and easy question on phpmyadmin security Reply with quote

I emerged the phpmyadmin package and liked how it is secure by default prompting you with a username and password before it will let you view the page.

My question is how exactly is it doing this, I can't find a .htaccess file in there, and looked through all the apache2 configs I could find. Just curious! Thanks!


P.S. This is my first go with gentoo and I am LOVING it! What a great server OS!
Back to top
View user's profile Send private message
intendedacceleration
n00b
n00b


Joined: 18 Nov 2003
Posts: 31
Location: Two Harbors, MN

PostPosted: Wed Dec 10, 2003 4:08 am    Post subject: Reply with quote

Bump, anybody? Should be an easy thing but I jsut can't figure it out!
Back to top
View user's profile Send private message
splooge
l33t
l33t


Joined: 30 Aug 2002
Posts: 636

PostPosted: Wed Dec 10, 2003 5:07 am    Post subject: Reply with quote

it uses php to connect to the mysql server and the username and password you are prompted for is a username and password that resides inside the database.... or something, bad explanation, bad grammar, ... /sigh
_________________
http://get.a.clue.de
Back to top
View user's profile Send private message
intendedacceleration
n00b
n00b


Joined: 18 Nov 2003
Posts: 31
Location: Two Harbors, MN

PostPosted: Wed Dec 10, 2003 5:12 am    Post subject: Reply with quote

splooge wrote:
it uses php to connect to the mysql server and the username and password you are prompted for is a username and password that resides inside the database.... or something, bad explanation, bad grammar, ... /sigh


Are you sure? It's not a regular php login page but a pop up page authentication from what looks like a .htaccess file for the apache server. I guess my root password is the same for my mysql database as it is for my computer account. I should change one or the other to see.
Back to top
View user's profile Send private message
ganiman
n00b
n00b


Joined: 11 Nov 2003
Posts: 28

PostPosted: Tue Dec 16, 2003 7:07 pm    Post subject: Reply with quote

In the phpmyadmin folder, there is a config.something file. Look in there.
_________________
Ganiman
Back to top
View user's profile Send private message
intendedacceleration
n00b
n00b


Joined: 18 Nov 2003
Posts: 31
Location: Two Harbors, MN

PostPosted: Tue Dec 16, 2003 7:20 pm    Post subject: Reply with quote

ganiman wrote:
In the phpmyadmin folder, there is a config.something file. Look in there.


The name of the file is config.inc.php, however this didn't really answer my question.

On this line:

Code:
$cfg['Servers'][$i]['auth_type']     = 'http';


It set's the auth type to http. This is what I expected it to be, however I can't figure out how the server is using http auth on that page. There is no .htaccess file for that page. What am I missing?
Back to top
View user's profile Send private message
spp
n00b
n00b


Joined: 11 Jul 2003
Posts: 27
Location: Alexandria, VA USA

PostPosted: Tue Dec 16, 2003 8:44 pm    Post subject: Reply with quote

PHP allows you to pop up HTTP Authorization Pages without the use of a .htaccess file. Look in your libraries/auth/http.auth.lib.php for how they do it.

Or, go here on how to do it.

SP
_________________
Installing Gentoo... (Still)
Back to top
View user's profile Send private message
intendedacceleration
n00b
n00b


Joined: 18 Nov 2003
Posts: 31
Location: Two Harbors, MN

PostPosted: Tue Dec 16, 2003 9:15 pm    Post subject: Reply with quote

spp wrote:
PHP allows you to pop up HTTP Authorization Pages without the use of a .htaccess file. Look in your libraries/auth/http.auth.lib.php for how they do it.

Or, go here on how to do it.

SP


Thank you, this is the answer I was looking for! :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum