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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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: > > [EMAIL PROTECTED] ~/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: [EMAIL PROTECTED] > cn: Estevam Viragh Junior > mailHost: 127.0.0.1 > sn: Viragh > > But, If I change the command line to: > > [EMAIL PROTECTED] ~/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: [EMAIL PROTECTED] > 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: > > [EMAIL PROTECTED] ~/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: [EMAIL PROTECTED] > 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