Click to See Complete Forum and Search --> : htaccess md5 password


chagi
10-12-2004, 11:58 AM
hi everybody,
first of all i am sorry for my english.. its pure :)
I am using php 4.3.2 on linux and a php script for bulilding .htpasswd file.
I got username and password and crypt it witch php crypt function. It works on linux but!!!
when i put my .htpasswd file on windows with apache 2.0.
It doesn't work. Users in .htpasswd file can't login.
What can i do? i am working on this till morning.

thanks

weekender
10-17-2004, 05:32 PM
hi

i think it's because windows and linux use different encryption algorithms. When a user puts in their password, apache will use OS (windows or linux) encryption and compare that to the password stored in .htpasswd.

If the .htpasswd file was created on linux and copied to windows, the passwords windows encrypts to check logins will not match.

And your english is perfectly understandable! Most of us english can't speak any other languages nearly as well as you speak english!

hope this helps

adam