I can confirm the bug exist in newest version of DirectAdmin 1.454 running cb 2.0 and default apache/mod_ruid2 on CentOS 6 64bit, so the bug must have come back again recently.
After deleting the user listed in the password protected directory and removing the check box for "Protection Enabled:", I get a internal server error on the web page. This was done when I had the public_html directory protected. The remaining code in .htaccess after removing the password protection is like this:
Code:
AuthGroupFile /dev/null
AuthType Basic
AuthUserFile /home/DOMAIN/domains/DOMAIN.COM/.htpasswd/public_html/.htpasswd
AuthName "Member's Area"
I would like to suggest that the code DirectAdmin put in .htaccess when we create password protection, should be enclosed with code like this:
Code:
# BEGIN DirectAdmin
passord protection code
in lines here
# END DirectAdmin
This is so that DirectAdmin code in .htaccess is separated from other existing code in .htaccess. Then when we remove password protection, DirectAdmin can delete everything between "# BEGIN DirectAdmin" and "# END DirectAdmin"
Also I would like to mention that when I try to remove password protection from DirectAdmin, I get a error if any of the following fields is filled with anything when removing the check box on "Protection Enabled:"
Code:
Set/Update User:
and Password:
Re-Enter Password
Also I get a error if the field "Protected Directory Prompt:" is not filled and empty when I remove the check box on "Protection Enabled:". In both cases the DirectAdmin error is:
Code:
An error occurred while attempting to protect the directory
Details
You must enter both password
So to be able to remove disable the "Protection Enabled:", then the field "Protected Directory Prompt:" must be filled with something, and all the other fields must be completely empty, if not it is not possible to disable "Protection Enabled:". That is not so user friendly. But the most important to fix is to not have "internal server" error happen on the web page when "protection enabled" is disabled.