ld is looking for libldap.[a or so], the main LDAP function library
where all the LDAP client code is found.. and once it fins this it will
also look for liblber.[a or so], the ASN1 encoding (and more) function
library of OpenLDAP.
The error is seen when the helper does exit before Squid has closed the
connection to the helper (stdin for the helper). How is your helper
reading authentication requests from Squid?
If you want to include debug output from your helper in the squid
cache.log then write such debug output to stderr.
Regards
Henrik
tis 2003-02-18 klockan 18.00 skrev Estevam Viragh Junior:
> Hy list,
>
> (I've search about this, but I couldn't find nothing related...)
>
> I have two questions regarding squid with LDAP:
>
> 1 - I'm trying to make the LDAP module which comes with squid-2.4STABLE7 on
> a OpenBSD3.2 system, but I'm having the following error:
>
> -------
> [root@raphsody ~/pkg/squid-2.4.STABLE7/auth_modules/LDAP]#make
> gcc -g -o squid_ldap_auth squid_ldap_auth.o -lldap -llber -lm -lresolv
> ld: -lldap: no match
> collect2: ld returned 1 exit status
> *** Error code 1
>
> Stop in /root/pkg/squid-2.4.STABLE7/auth_modules/LDAP (line 43 of Makefile).
> --------
>
> This host has Openldap with all the required libs. I also tried to find what
> ld is complaining without success... :-(
> Does some body knows how to solve it ?
>
> 2 - In other hand, I'm looking for a new authenticate program so I started
> designing it.
> It seems to work as squid expects. When I run it on the shell the "username
> password\n" parameters works fine, as follows:
>
> --------
> [root@raphsody ~]#./auth
> estevam password
> OK
> estevam wrongpass
> ERR
> --------
>
> But the problem appears with squid.
> My squid.conf has:
>
> --------
> auth_param basic program /path_to_program/auth
> auth_param basic children 5
> auth_param basic realm Entre com usuário e senha
> auth_param basic credentialsttl 2 hours
> --------
>
> When I run squid -d 255 I get the following:
>
> --------
> .
> .
> .
> 2003/02/18 03:37:00| Ready to serve requests.
> 2003/02/18 03:37:06| WARNING: basicauthenticator #1 (FD 7) exited
> 2003/02/18 03:37:06| WARNING: basicauthenticator #2 (FD 8) exited
> 2003/02/18 03:37:08| WARNING: basicauthenticator #3 (FD 9) exited
> ---------
>
> The WARNING lines appears when I try to authenticate on the browser.
> What I'm doing wrong ?
>
> Thanks so much in advance,
>
>
> ESTEVAM VIRAGH JUNIOR
> AIM: "Estevam Viragh"
> e-mail: estevam.viragh@sitelbrasil.com.br
-- Henrik Nordstrom <hno@squid-cache.org> MARA Systems AB, SwedenReceived on Tue Feb 18 2003 - 10:55:42 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:13:27 MST