Re: .htaccess and crypt
| From: | Wayne | Date: | Sun, 02 Mar 2003 04:03:18 +0000 |
| Subject: | Re: .htaccess and crypt | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18802@lists.php.net to get a copy of this message | ||
by default, .htaccess / .htpasswd files use PLAIN TEXT passwords IE:
Username:Password
instead of *nix:
Username:crypt($password)
you could try to take the crypt function off the password on one of the
scripts :)
[i just edit my .htpasswd files in notepad tho, since i dont edit them much
ne how :D
"Chris Morris" <cpmorris@mail.com> wrote in message
news:20030227132851.18102.qmail@pb1.pair.com...
> I have seen several PHP scripts that act as an interface to .htaccess
files.
> They are able to add, change, and delete users from a nice, web-based
> interface. The only problem is that they don't work on Windows.
>
> I read a post somewhere where someone said that this is because the
scripts
> use "crypt" to write the encrypted password to the .htpasswd file and
> "crypt" is not the same on Windows and Linux/Unix. Something about
Windows
> and Linux not using the same encryption functions.
>
> Anyway, has anyone gotten this to work on Windows? I am doing research as
> to which technology would be best to implement an automated user creation
> and removal system and PHP and Apache seems to be the best solution, IF I
> can get this to work.
>
>