Re: [squid-users] squid_ldap_auth and -s sub

From: Estevam Viragh Junior <estevam.viragh@dont-contact.us>
Date: Wed, 2 Jul 2003 12:44:02 -0300

Another info:

The squid_ldap_group is doing -s sub searches just fine !
But in this case I get this module from squid-2.5.STABLE2.

I'd appreciate any help !

Thanks in advance,
EVJ

----- Original Message -----
From: "Estevam Viragh Junior" <estevam.viragh@sitelbrasil.com.br>
To: <squid-users@squid-cache.org>
Sent: Tuesday, July 01, 2003 4:37 PM
Subject: [squid-users] squid_ldap_auth and -s sub

> Hello all,
>
> I'm having problems with the squid_ldap_auth module from
> squid-3.0.DEVEL-20030629.
> It does not seems to work with -s sub option.
> (I'm using this version cause I need LDAPv3.)
>
> Every thing works fine if I use:
>
> [root@rhapsody ~/sources]#./squid_ldap_auth -v 3 -b
> "ou=accounts,o=sitelbrasil.com.br"
> estevam.viragh 123
> OK
>
> (LDIF of the matched dn.)
> dn: uid=estevam.viragh, ou=accounts, o=sitelbrasil.com.br
> givenName: Estevam
> accountStatus: active
> objectClass: top
> objectClass: person
> objectClass: inetOrgPerson
> objectClass: qmailuser
> userPassword::#######################
> mailMessageStore: estevam.viragh
> uid: estevam.viragh
> mail: estevam.viragh@sitelbrasil.com.br
> cn: Estevam Viragh Junior
> mailHost: 127.0.0.1
> sn: Viragh
>
> But, If I change the command line to:
>
> [root@rhapsody ~/sources]#./squid_ldap_auth -v 3 -b
> "ou=accounts,o=sitelbrasil.com.br" -s sub -f "(uid=%s)"
> renato.diniz 123
> ERR
>
> It does not find the following dn:
>
> dn: uid=renato.diniz, ou=network, ou=it, ou=accounts,
> o=sitelbrasil.com.br
> mailMessageStore: renato.diniz
> givenName: Renato
> sn: Diniz
> userPassword:: ##########
> mail: renato.diniz@sitelbrasil.com.br
> objectClass: top
> objectClass: person
> objectClass: inetOrgPerson
> objectClass: qmailuser
> uid: renato.diniz
> accountStatus: active
> mailHost: 127.0.0.1
> cn: Renato Rodriguez Diniz
>
> I'm sure the LDAP search is ok cause the ldapsearch as follows is
> working fine:
>
> [root@rhapsody ~/sources]#ldapsearch -LLL -v -h localhost -D
"MYUSER" -w
> MYPASS -s sub -b
> "o=sitelbrasil.com.br" "(uid=renato.diniz)"
> ldap_init( localhost, 0 )
> filter: (uid=renato.diniz)
> requesting: ALL
> dn: uid=renato.diniz,ou=network,ou=it,ou=accounts,o=sitelbrasil.com.br
> mailMessageStore: renato.diniz
> givenName: Renato
> sn: Diniz
> userPassword:: #####
> mail: renato.diniz@sitelbrasil.com.br
> objectClass: top
> objectClass: person
> objectClass: inetOrgPerson
> objectClass: qmailuser
> uid: renato.diniz
> accountStatus: active
> mailHost: 127.0.0.1
> cn: Renato Rodriguez Diniz
>
> So, What I'm doing wrong ?
> Is that so other stable version which supports LDAPv3 ?
>
>
> rgds,
> ESTEVAM VIRAGH JUNIOR
> Sitel do Brasil
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.495 / Virus Database: 294 - Release Date: 30/6/2003
>
>

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.489 / Virus Database: 288 - Release Date: 10/6/2003
Received on Wed Jul 02 2003 - 09:44:08 MDT

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