RE: [squid-users] RE: Problem about Active Directory and LDAP !!

From: Hamed Majnoonian <[email protected]>
Date: Fri, 9 Jan 2004 15:18:43 +0330

Dear Henrik,

I did the following procedures:

1- I go to /usr/ports/www/squid/work/squid.../
2- ./configure --enable-basic-auth-helpers="LDAP"
3- It was successful
4- /usr/ports/www/squid/work/squid-2.5.STABLE4/helpers/basic_auth/LDAP
5- Edited file "Makefile" as you told me ... here is the changes :

####################################################################
LDADD = -L$(top_builddir)/lib -lmiscutil -L/usr/local/lib -lldap -llber
$(XTRA_L
INCLUDES = -I$(top_srcdir)/include -I/usr/local/include
####################################################################

6- Saved the file and "make" again
7- Here is the error report:

#############################################
Swordfish# make
cc -g -O2 -Wall -g -o squid_ldap_auth squid_ldap_auth.o -L../../../lib
-lmiscutil -L/usr/local/lib -lldap -llber -lm
squid_ldap_auth.o: In function `squid_ldap_set_referrals':
/usr/ports/www/squid/work/squid-2.5.STABLE4/helpers/basic_auth/LDAP/squid_ld
ap_auth.c:123: undefined reference to `ber_pvt_opt_on'
*** Error code 1

Stop in /usr/ports/www/squid/work/squid-2.5.STABLE4/helpers/basic_auth/LDAP.
#############################################

And I am very sorry to bother you about this problem too much ... but I am
really trying to fix that.

Cheers
Hamed

-----Original Message-----
From: Henrik Nordstrom [mailto:hno@squid-cache.org]
Sent: Friday, January 09, 2004 12:18 PM
To: Hamed Majnoonian
Cc: 'Henrik Nordstrom'; squid-users@squid-cache.org
Subject: RE: [squid-users] RE: Problem about Active Directory and LDAP !!

On Fri, 9 Jan 2004, Hamed Majnoonian wrote:

> Dear Henrik,
>
> Thank you very much for your help.
> I have searched my machine and I found following PATH:
>
> ##################
> For ldap.h
>
> /usr/include/ldap.h
> /usr/local/include/ldap.h
> ##################
>
> ##################
> For libldap.a
>
> /usr/local/lib/libldap.a
> ##################
>
> Could you please give a clear guidance because I don't know what else
should
> I do?

Looks like your compiler does not look in /usr/local by default. After
running configure edit helpers/basic_auth/LDAP/Makefile and add

-I/usr/local/include

to the INCLUDES = line, and

-L/usr/local/lib

to the LDADD = line before -lldap

and the same thing in the external_acl/ldap_group/Makefile

Regards
Henrik
Received on Fri Jan 09 2004 - 04:49:04 MST

This archive was generated by hypermail pre-2.1.9 : Sun Feb 01 2004 - 12:00:05 MST