Only old password works in htaccess

Alles, was den Apache betrifft, kann hier besprochen werden.

Only old password works in htaccess

Postby pms » 22. February 2010 22:36

Here is my problem:

I am using .htaccess file to protect a directory on my server.
(virtual host)
The user defined in the password file can log in using password.

That works OK.

But now I want to add a different user. So I generated a password (using an online generater) and added the new username and new generated password to the password file.

But the new user can not login using the new generated password.
When I give the new user the same password as the existing user he can login.

Anyone an idea? I tried different online generator, all the same problem.
It looks like my xampp server uses different de-coding for the password?
pms
 
Posts: 4
Joined: 13. September 2008 20:35

Re: Only old password works in htaccess

Postby pms » 26. February 2010 09:36

Does nobody recognise this problem? No solution?
pms
 
Posts: 4
Joined: 13. September 2008 20:35

Re: Only old password works in htaccess

Postby Altrea » 26. February 2010 14:09

Online Password generator using different crypting methods (md5, sha-1, crypt)
Apache on Windows can work with plain-text and an alternate form of md5 (not the original specification)

In your apache/bin folder is a htpasswd (file-)generator.
This should generate you the right hash.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Only old password works in htaccess

Postby pms » 27. February 2010 10:01

Thank You Altrea!

That solved the problem. The command:
w:\apache\bin\htpasswd.exe -nb username password

generated a correct MD5 password.

Thanks again for giving the solution
pms
 
Posts: 4
Joined: 13. September 2008 20:35


Return to Apache

Who is online

Users browsing this forum: No registered users and 178 guests