[squid-users] squid_ldap_auth and -s sub

From: Estevam Viragh Junior <estevam.viragh@dont-contact.us>
Date: Tue, 1 Jul 2003 16:37:32 -0300

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
Received on Tue Jul 01 2003 - 13:47:14 MDT

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