I installed .htaccess in our members directory,
Example -
AuthUserFile /home/domain/html/members/.htpasswd
AuthGroupFile /dev/null
AuthType Basic
AuthName "Domain [Members ONLY]"
<LIMIT GET POST>
require valid-user
</LIMIT>
To create a password, I have this
$passfile = "/home/domain/html/members/.htpasswd";
srand( time() ^ ($$ + ($$ << 15)) );
@salt_chars = ('A' .. 'Z', 0 .. 9, 'a' .. 'z', '.', '/');
$salt = join '', @salt_chars[rand 64, rand 64];
$encrypted = crypt($in{password}, $salt);
open (pass, ">>$passfile");
flock pass, 2;
print pass "$in{username}:$encrypted";
close(pass);
And yet, the password dialog box shows up, the passwords are written to the file but no password ever works, always get a 401 error message.
Any ideas?
Example -
AuthUserFile /home/domain/html/members/.htpasswd
AuthGroupFile /dev/null
AuthType Basic
AuthName "Domain [Members ONLY]"
<LIMIT GET POST>
require valid-user
</LIMIT>
To create a password, I have this
$passfile = "/home/domain/html/members/.htpasswd";
srand( time() ^ ($$ + ($$ << 15)) );
@salt_chars = ('A' .. 'Z', 0 .. 9, 'a' .. 'z', '.', '/');
$salt = join '', @salt_chars[rand 64, rand 64];
$encrypted = crypt($in{password}, $salt);
open (pass, ">>$passfile");
flock pass, 2;
print pass "$in{username}:$encrypted";
close(pass);
And yet, the password dialog box shows up, the passwords are written to the file but no password ever works, always get a 401 error message.
Any ideas?