[squid-users] Compiling squid and auth_ldap authentication [Tru64]

From: Donal Hunt <donal.hunt@dont-contact.us>
Date: Wed, 18 Jul 2001 12:57:30 +0100

Had a problem with compiling the supplied auth_ldap module that comes
with Squid-2.4.STABLE1 on Tru64 (OSF1 mymachine.dcu.ie V4.0 1091 alpha).

managed to get it to compile and work by using the following diffs:
-----------------------------------------------------------------------
MyMachine {590}# diff squid-2.4-200107102300/auth_modules/LDAP/Makefile
squid-2.4-200107172300/auth_modules/LDAP/Makefile
4c4
< LIBS = -lldap -llber

---
> LIBS          = -L/usr/dist/lib -lldapssl41
18a19
> CFLAGS  = -g -I/usr/dist/include/ldap
33c34
< XTRA_LIBS     = -lm -lbind -lbsd -lgnumalloc
---
> XTRA_LIBS     = -lm -lbsd -lgnumalloc #-lbind
-----------------------------------------------------------------------
MyMachine {591}# diff
squid-2.4-200107102300/auth_modules/LDAP/squid_ldap_auth.c
squid-2.4-200107172300/auth_modules/LDAP/squid_ldap_auth.c
48c48
< #include <ldap_cdefs.h>
---
> /*#include <ldap_cdefs.h>*/
272c272
<       snprintf(filter, sizeof(filter), searchfilter, userid, userid,
userid,
userid, userid, userid, userid, userid, userid, userid, userid, userid,
userid, userid, userid);
---
>       sprintf(filter, searchfilter, userid);
294c294
<       snprintf(dn, sizeof(dn), "%s", userdn);
---
>       sprintf(dn, "%s", userdn);
298c298
<       snprintf(dn, sizeof(dn), "%s=%s,%s", userattr, userid, basedn);
---
>       sprintf(dn, "%s=%s,%s", userattr, userid, basedn);
-----------------------------------------------------------------------
Here's the configure script i used:
-----------------------------------------------------------------------
MyMachine {592}# cat squid-2.4-200107172300/dh.make
#!/bin/sh
#
# Config script for Squid webcache.
#
# By: Donal Hunt.
#
# For Tru64.
CFLAGS="-DNUMTHREADS=30 -I/usr/dist/include/ldap"
CC=gcc
export CFLAGS CC
 
./configure --prefix=/usr/local/squid \
  --enable-async-io \
  --enable-storeio=diskd,ufs \
  --enable-gnuregex \
  --enable-delay-pools \
  --disable-wccp \
  --enable-snmp \
  --enable-time-hack \
  --enable-cache-digests \
  --enable-poll \
  --disable-ident-lookups \
  --enable-underscores \
  --enable-removal-policies=heap \
  --enable-auth-modules=LDAP
-----------------------------------------------------------------------
Dunno if anyone else has had problems, but i've had to make the change
on the src tarball for squid-2.4.STABLE1, and the two snapshots i've
downloaded. Might help someone in the future/the developers.
I had another problem with:
2001/07/17 08:49:02| assertion failed: store_io_diskd.c:492:
"++send_errors <
100" 
killing squid, but hopefully i've fixed that now - I'll be bugging the
list more if it's still a problem!! hehe
Regards
Donal
--Sysops--
DCU
Received on Wed Jul 18 2001 - 05:54:03 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:01:09 MST