Welcome, Guest
Please Login or Register.
Lost Password?
Password Protected Directory question (1 viewing)
Post Reply

TOPIC: Password Protected Directory question

#7014
RickHaga (User)
Posts: 5
graphgraph
Re:Password Protected Directory question 2007/08/30 15:00  
Actually, I'm not wanting to make it that locked down. Whenever someone clicks on her name or goes to her folder, they have to enter the username and password twice before anything appears on the screen. I'd rather only have to enter it once.

I set up a user for you to try out.

http://www.pshsscience.com/agonzalez/

username is tempuser
pass is TEST07

Try it out and see that is requests it twice. I tried to set up the protected directory with the / and without it. I didn't know if maybe that was causing the problem, but it's not.

Thanks
  The administrator has disabled public write access.
#7015
RickHaga (User)
Posts: 5
graphgraph
Re:Password Protected Directory question 2007/08/30 15:02  
Actually, I'm not wanting to make it that locked down. Whenever someone clicks on her name or goes to her folder, they have to enter the username and password twice before anything appears on the screen. I'd rather only have to enter it once.

I set up a user for you to try out.

http://www.pshsscience.com/agonzalez/

username is tempuser
pass is TEST07

Try it out and see that is requests it twice. I tried to set up the protected directory with the / and without it. I didn't know if maybe that was causing the problem, but it's not.

Thanks
  The administrator has disabled public write access.
#7016
RickHaga (User)
Posts: 5
graphgraph
Re:Password Protected Directory question 2007/08/30 15:02  
Sorry about the double post. Not sure what I did.
  The administrator has disabled public write access.
#6969
RickHaga (User)
Posts: 5
graphgraph
Password Protected Directory question 2007/08/30 20:28  
I recently added wordpress through virtualmin pro install script process. It is going to be used for a school teacher who is planning on posting notes, etc onto it. In doing so, she wanted to password it so that only her students could see the files and change the password every so often.

Getting the directory protected wasn't a problem, but now in order to get into her area, the username and password prompt comes up twice. Is it due to the wordpress program using mysql and it needing to access that directory as well? If, so how can I code it so that the prompt only comes up once? If it can't be done, then I'll just tell them that they have to enter it twice. :)

Thanks everyone for any help.

Rick
  The administrator has disabled public write access.
#7030
Joe (Admin)
Posts: 4213
graph
Re:Password Protected Directory question 2007/08/30 23:19  
Weird. How'd you manage that?

You've got two different realms asking for authentication (so the browser asks for passwords twice). Remove the extra login check, or set them to the same realm (identical realm--any difference means the browser will re-ask for pass) if you really need two layers for some reason (but I'm thinking you're not intending to have that).

Depending on how you setup the password protection, you could have an .htaccess file in the relevant directory, or it could be in the httpd.conf file in the Directory section of this script.
  The administrator has disabled public write access.
#6982
Joe (Admin)
Posts: 4213
graph
Re:Password Protected Directory question 2007/08/31 00:48  
Hey Rick,

It can't be done. The password formats are different between htpasswd and the WordPress login...so even if you detect her login, you wouldn't have a password to pass on to WordPress (I don't think). Session-based authentication can be tweaked to work across multiple apps (we do it here at Virtualmin.com, for the documentation and the bug tracker, example), but session and http authentication aren't really shareable.

You can, however, probably allow unpassword protected access to the admin and login pages:

/wp-admin/
/wp-login.php

Which will allow editing of posts without a separate web server login.

I bet there's a plugin for WordPress though, that would allow you to lock down access using WordPress users and sessions. I don't know that for sure, but there are like 80 thousand plugins for WordPress. I'm sure somebody out there wrote one to support selling of premium content or something.

Post edited by: Joe, at: 2007/08/31 00:56
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.