Try replacing LDAP_OPT_SUCCESS with 0 The LDAP_OPT_SUCCESS return value seems to be an OpenLDAP extension not documented in the Internet draft LDAP C-API document.
This applies to both squid_ldap_auth and squid_ldap_group. Regards Henrik On Mon, 24 Nov 2003, Brett Clifford wrote: > Hi All, > > We are trying to compile the basic LDAP authenticator for squid against > the SunOne Directory Server 5.2 SDK but seem to have a problem with an > undefined symbol > > (Sun WorkShop 6 update 2 C 5.3 2001/05/15) > compile errors for squid LDAP authenticator follow > =================================================== > source='squid_ldap_auth.c' object='squid_ldap_auth.o' libtool=no \ > depfile='.deps/squid_ldap_auth.Po' tmpdepfile='.deps/squid_ldap_auth.TPo' > \ > depmode=none /bin/sh ../../../cfgaux/depcomp \ > cc -DHAVE_CONFIG_H -I. -I. -I../../../include -I/usr/include > -I/usr/ds/v5.2/plugins/slapd/slapi/include -I../../../include -g -c > `test -f squid_ldap_auth.c || echo './'`squid_ldap_auth.c > "squid_ldap_auth.c", line 441: undefined symbol: LDAP_OPT_SUCCESS > cc: acomp failed for squid_ldap_auth.c > *** Error code 2 > make: Fatal error: Command failed for target `squid_ldap_auth.o' > > > I checked the ldap.h files and could not find LDAP_OPT_SUCCESS as > stated in the compile output. > > > Has anyone got some squid_ldap authenticator code which will compile with > the DS 5.2 SDK or any help with compiling the current squid ldap > authenticator against DS 5.2 SDK > > Any help would be greatly appreciated > > Thanks > > > Brett Clifford > TI Resources > University of Tasmania > >