Jan Soldaat wrote:
> "stig" <_nospam_stigerikson DeleteThis @yahoo.se> wrote in message
> news:bu3hkh$73b$1@oden.abc.se...
>
>>hi
>>
>>using the authentication system in apache, i saw that one can create SHA
>>or MD5 passwords with htpasswd.
>>
>>i tried this, but then i could not log in to the protected pages.
>>AuthType is set to Basic in the configuration, should this be changed
>>perhaps?
>>
>>stig
>
>
> No, I don't think it has to be changed. I use it on a system (XP, Apache
> 2.0.48, PHP4.3.4) and it works without changes. BTW, on XP apparantly MD5 is
> used by default.
>
> Have you got the right .htaccess in place (in the directory you want to use
> authentication for)?
>
> Mine looks like this:
>
> AuthType Basic
> AuthUserFile "c:/webroot/private/.htpasswd"
> AuthGroupFile /dev/null
> AuthName "Members Area"
> <Limit GET>
> require valid-user
> </Limit>
>
> (Thanks to <a style='text-decoration: underline;' href="http://www.scriptsharks.com/articles/htaccess.php," target="_blank">http://www.scriptsharks.com/articles/htaccess.php,</a> where I found
> it. Also find there where to set the AllowOverride None clause in
> httpd.conf)
>
> Good luck!
> jan
>
> --
<font color=purple> > Microsoft humor ? <a style='text-decoration: underline;' href="http://eniac.xs4all.nl/cannot.html</font" target="_blank">http://eniac.xs4all.nl/cannot.html</font</a>>
>
>
i had it right, but someting in my password file must have been bad,
created a new and the MD5-passwords are working fine now, but i cannot
get the SHA-passwords working. well, well MD5 will do just fine.
stig<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: using SHA or MD5 passwords in password file