[squid-users] Squid and LDAP

From: Estevam Viragh Junior <estevam.viragh@dont-contact.us>
Date: Tue, 18 Feb 2003 14:00:45 -0300

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
Received on Tue Feb 18 2003 - 10:06:46 MST

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