Search squid archive

Re: Re: ncsa_auth.c:143: undefined reference to `crypt'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

At 00.28 05/11/2006, Henrik Nordstrom wrote:
lör 2006-11-04 klockan 16:45 -0600 skrev Xavier O'Neill:

> I am attempting to build squid 2.6 from src's on a Windows XP pro system.

You need libcrypt, or to disable the use of UNIX crypt() hashed
passwords.

This is a known problem with MinGW: libcrypt is not available in the main distribution and must be downloaded from the "MinGW packages repository" http://sourceforge.net/projects/mingwrep/
I have forgotten to add a note about this in the release notes.

To disable the use of UNIX crypt() hashed passwords uncomment the
following two lines in ncsa_auth.c:

} else if (strcmp(u->passwd, (char *) crypt(passwd, u->passwd)) == 0) {
            printf("OK\n");


The password file can be created with htpasswd -m

And a Windows sources and binaries of htpasswd can be found here:
http://www.acmeconsulting.it/SquidNT.htm (look for NCSA helper Windows support tools)


I have fixed the next release so this (disabling crypt) is not needed to
be done by hand when not supported by the host platform. Patch should be
available in the changesets section in a few hours.

Henrik: in the nt CVS branch there is already a GPL version of encrypt.c used when building with Visual Studio, if you agree, I can add it in the lib directory and build when needed like strsep.c.

Regards

Guido



-
========================================================
Guido Serassio
Acme Consulting S.r.l. - Microsoft Certified Partner
Via Lucia Savarino, 1           10098 - Rivoli (TO) - ITALY
Tel. : +39.011.9530135  Fax. : +39.011.9781115
Email: guido.serassio@xxxxxxxxxxxxxxxxx
WWW: http://www.acmeconsulting.it/



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux