garfvader
01-16-2004, 04:49 PM
Hello!
I've been doing searches on google and through perl databases and what not and am having some trouble coming up with an answer to this one.
I'm in a situation where I have a Unix server with a big huge password file. I'd like the usernames and passwords from this file to be utilized in an htpasswd file so I can link an htaccess to these already preexisting usernames and passwords.
That's not a problem. The problem is I'd like to be able to set up the login for the users using a perl script. When I go to check their password (since the password field sends just text), I need to encrypt it and then check to see if it matches the password in the htpasswd file. Unfortunately, I don't know how to encrypt these passwords to match the passwords in that file. Could anyone give me some advice or tips to at least get me pointed in the right direction? It would be much appreciated.
Thanks!
I've been doing searches on google and through perl databases and what not and am having some trouble coming up with an answer to this one.
I'm in a situation where I have a Unix server with a big huge password file. I'd like the usernames and passwords from this file to be utilized in an htpasswd file so I can link an htaccess to these already preexisting usernames and passwords.
That's not a problem. The problem is I'd like to be able to set up the login for the users using a perl script. When I go to check their password (since the password field sends just text), I need to encrypt it and then check to see if it matches the password in the htpasswd file. Unfortunately, I don't know how to encrypt these passwords to match the passwords in that file. Could anyone give me some advice or tips to at least get me pointed in the right direction? It would be much appreciated.
Thanks!