[squid-users] Re: Problems with the script

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 20 Aug 2003 17:25:48 +0200

squid_auth_ldap is not the same program as squid_ldap_auth.

squid_ldap_auth is the LDAP helper shipped with Squid.

squid_auth_ldap is another third-party LDAP helper for Squid, to some
extent providing similar functionality to squid_ldap_auth but
entirely different configuration.

Regards
Henrik

On Wednesday 20 August 2003 16.23, Arias, Sebastian Alejandro - (Ext
Arg) wrote:
> Henrik,
>
> Sorry if I disturb you. I have a question about your script.
> I think that the version placed at: (Because yo tell me about the
> F option that its different that the opction that I have at my
> version)
>
> http://www.mit.edu/afs/sipb/service/squid/src/squid-2.4.STABLE6/aut
>h_modules /LDAP/squid_ldap_auth.c
>
> if different that the version that I have ... because at my menu I
> have the following help
>
> squid_auth_ldap ver. 2.0.3, (c) Casper Pedersen 2001-2002
>
> Usage: squid_auth_ldap -[f config-file] -[Sps[GUgld]] -h
> -f cofiguration file
> -S ldapServer
> -p ldapPort (default 389)
> -s searchBase
> -g proxyGroup
> -G group attribute (default "groupMembership")
> -U user attribute (default "uid")
> -l logfile (not implemented - using syslog)
> -d loglevel <0..3> (default 0)
> -e debug - logs to stderr
> -D binddn
> -w bindpasswd
> -h help
>
> - debug levels:
> 0 - none
> 1 - info
> 2 - warnings
> 3 - debug
>
> squid_auth_ldap -f /etc/squid_auth_ldap.conf
> squid_auth_ldap -S acme_ldap -p 389 -s o=acme -g pxyUsers
>
> and this is the text at the mit link version ... but I can't
> compile this version. (squid_auth_ldap.c: In function
> `squid_ldap_set_referrals': squid_auth_ldap.c:97:
> `LDAP_OPT_REFERRALS' undeclared (first use in this function)
> squid_auth_ldap.c:97: (Each undeclared identifier is reported only
> once squid_auth_ldap.c:97: for each function it appears in.))
>
> Usage: squid_ldap_auth -b basedn [-s searchscope]
> * [-f searchfilter] [-D binddn -w bindpasswd]
> * [-u attr] [-p] [-R] <ldap_server_name>
>
> Both versions works fine? ... I need to make any changes at the mit
> version script to compile it? ...
> Because with the version that I'm using I receiving the following
> message when I try to make the autentication:
>
> [root@localhost otro]# ./squid_auth_ldap -S 32.94.178.15 -p 389 -s
> 'OU=Sistemas,OU=Cuentas de usuario,dc=ar,dc=attla,dc=com' -U cn -e
> squid_auth_ldap[8007]: - connected to ldapServer 32.94.178.15:389
> squid_auth_ldap[8007]: - ready
> seba seba
> squid_auth_ldap[8007]: - got User: seba
> squid_auth_ldap[8007]: - got Password: thwm/MYZUM2Ew
> squid_auth_ldap[8007]: - searchstr:
> (&(|(objectClass=inetOrgPerson)(objectClass=alias)) (| (cn=seba)))
> squid_auth_ldap[8007]: - start searching for cn: seba
> squid_auth_ldap[8007]: - search done
> squid_auth_ldap[8007]: - user "seba", not found!
> ERR
> squid_auth_ldap[8007]: - usr seba -> Cannot find user!
>
> Thanks and regards!
>
> _________________________________________
> Sebastián Arias
> Infraestructure & Technologies
> AT&T Latín América, Argentina
> Phone: [5411]5288-0524 - Fax: [5411]5288-0408
>
> Este mensaje es confidencial. El mismo contiene información
> reservada y que no puede ser difundida. Si usted ha recibido este
> e-mail por error, por favor avísenos inmediatamente vía e-mail y
> tenga la amabilidad de eliminarlo de su sistema; no deberá copiar
> el mensaje ni divulgar su contenido a ninguna persona. Muchas
> gracias.
>
> This message is confidential. It contains information that is
> privileged and legally exempt from disclosure. If you have received
> this e-mail by mistake,
>
> please let us know immediately by e-mail and delete it from your
> system; you should also not copy the message nor disclose its
> contents to anyone. Thank You.
Received on Wed Aug 20 2003 - 09:27:27 MDT

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