hello

I hope this does not appear too tedious a problem or that I am taking a too difficult a path to get the result. But here goes ...

I am trying to achieve squid authentication to an ldap server (Active Directory) and access control based on an ldap group.

I have built and installed openldap v2.1.12 on a mandrake linux box. As I only needed the libraries the openldap configure was with --enable-slapd=no and --enable-static. I then liked the libraries and includes to /usr/lib and /usr/include.

configure flags to squid-2.5stable1 were --enable-auth=basic --enable-basic-auth-helpers="LDAP" --enable-external-acl-helpers="ldap_group"

During the make process it fails when trying to make squid_ldap_group. Undefined reference to ldap_build_filter.

Further resaerch indicates that the function ldap_build_filter has been removed from the openldap libs since some recent version 2 release.
I discovered that squid_ldap_match available at http://marasystems.com/download/LDAP_Group/ does what squid_ldap_group does without relying on ldap_build_filter.

So I presume I can use that. But I am now stuck. How do I incorporate and build that file (the c source file and the man page) into the main squid make process? If its as simple as passing a line to gcc to produce a binary, what might that line be? In that event, what do I need to change to stop the main build failing when it gets to the squid_ldap_group makefiles (in helpers/external_acl/ldap_group? (tried moving that helper out of the source tree but then it couldn't find it and complained)

I am not much of a hacker at the low levels required to change makefiles and so on.

Many thanks.

rolf.

Reply via email to