Apache and crypt

Apache and crypt

Post by Christophe Car » Wed, 19 Nov 1997 04:00:00


I run Apache httpd 1.3b2(or 1.2.4), solaris 2.5.1

I'll protect directory with passwd authentification.

Users have accounts on the machine.
I would use the user's passwd in /etc/shadow file.

To do it , I get the the name and encrypted passwd
from shadow file, and copy them in a .htpasswd
in format

So i would not use the htpasswd utility to avoid
to duplicate creation of  account (Web and system).

But it seems that system passwd does not work always
with httpd authentification.
For some passwd it's works, for other no:" password mismatch"
in error_log

With htpasswd it's always ok...but i will not use...

Is there a solution ?
Should i compile httpd with "-lcrypt" ????
Crypt use un mod_auth is different from system crypt ????

Thanks for your help


= Christophe Caron      Unite Informatique de Jouy      =
= I.N.R.A.              Domaine de Vilvert              =