.htaccess AuthUserFile disallow blank username and password
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Web Servers on Unix and Linux > .htaccess AuthUserFile disallow blank username and password




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    .htaccess AuthUserFile disallow blank username and password  
BEV


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-01-05 10:59 PM

I have a problem where if the AuthUserFile contains a blank line then
users can log in with a blank username and password.

Is it possible to specify in the .htaccess file that the user "" with
password "" is not allowed even if there is a blank line in the file?

Also related to this problem could anyone advise me how i could run a
cronjob to remove any blank lines from the AuthUserFile.

Cheers

Bev





[ Post a follow-up to this message ]



    Re: .htaccess AuthUserFile disallow blank username and password  
David Efflandt


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-03-05 07:47 AM

On 1 Feb 2005 14:31:06 -0800, BEV <bev_korf@hotmail.com> wrote:
> I have a problem where if the AuthUserFile contains a blank line then
> users can log in with a blank username and password.
>
> Is it possible to specify in the .htaccess file that the user "" with
> password "" is not allowed even if there is a blank line in the file?
>
> Also related to this problem could anyone advise me how i could run a
> cronjob to remove any blank lines from the AuthUserFile.

Perhaps you need to review how names/passwords get added/removed from the
password file, so they will never be there to temporarily exploit.  There
must be an error or oversight in your script or method to add or remove
passwords.

If the authenticated resource is or is wrapped by a script (like an
Action directive) you could check if REMOTE_USER has a value.  However, if
you use an Action, it is up to your action handler to send proper headers
and content (to stdout).

You might also check which Allow or Satisfy directives apply.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:08 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register