Go Back   cPanel Forums > cPanel® and WHM® (for Linux® and FreeBSD® Servers) > cPanel and WHM Discussions

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-28-2009, 09:29 PM
Registered User
 
Join Date: Apr 2008
Posts: 89
thobarn is on a distinguished road
CPanel password protect directories, failure if symbols < or > are used

If the password generated by CPanel >> Password Protect Directories >> Password generator contains less than (<) or greater than (>) symbols, then the password will not work. However, the generator routinely includes these if "Symbols" box is selected. If you want your passwords to work, exclude this symbol.

Test case:
1) Password protect a directory using CPanel interface
2) Create a user with the user name: "test" and the password: "test>"
3) Visit password protected resource and use credentials in step 2

[FYI]
Since neither man htpasswd nor the Apache AAA manual [1] gives such a limitation, this must be due to CPanel implementation, and I reckon it has something to do with input sanitization removing angled brackets.
[/FYI]


[1] http://httpd.apache.org/docs/2.2/howto/auth.html

Last edited by thobarn; 03-28-2009 at 09:54 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
.htaccess , directory protection , password , password generator , password protect

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:00 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc