RE: [squid-users] ERR Missing username using basic ldap auth

From: Nathanael Chambers <nathanael__at_live.com>
Date: Tue, 28 May 2013 16:58:24 +1030

Hi Amos, I'm not sure I understand what you mean. Should those commands not work when run by themselves from the linux shell?  When I put the LDAP config in squid.conf I get these lines in cache.log everytime I attempt to log in from a browser: basic_ldap_auth.cc(740): pid=1982 :attempting to authenticate user 'uid=USERNAME,dc=DOMAIN,dc=com' The log in fails, but nothing else is logged. ---------------------------------------- > Date: Tue, 28 May 2013 00:01:22 +1200 > From: squid3_at_treenet.co.nz > To: squid-users_at_squid-cache.org > Subject: Re: [squid-users] ERR Missing username using basic ldap auth > > On 27/05/2013 1:10 p.m., Nathanael Chambers wrote: >> Hi, >> >> When using the basic_ldap_auth helper (compiled with squid 3.3) I get the an error saying "ERR Missing username". This is the command I am using: >> /usr/lib/squid/basic_ldap_auth -R -h IPADDRESS -b dc=DOMAIN,dc=com -D cn=Administrator,cn=Users,dc=domain,dc=com -w PASSWOR -f (&(objectclass=person)(cn=%s)) >> >> >> No difference when using either -f sAMAccountName=%s or -f (&(objectclass=person)(cn=%s)), which I have seen in different examples. >> I've also tried using the squid_ldap_auth helper (compiled with squid 3.1) with the same values and receive the error "ERR". >> >> However, using ldapsearch works fine. Command for ldapsearch: >> ldapsearch -LLL -x -h IPADDRESS -b DC=DOMAIN,DC=com -D CN=Administrator,CN=Users,DC=DOMAIN,DC=com -w PASSWORD >> >> Trying to connect to Server 2003 functional level Active Directory. Looking at the servers logs, it doesn't seem that any attempts are made to contact the server. > > "Missing" refers to the data sent to the helper. There is no username > sent from Squid to the helper. > > Amos >
Received on Tue May 28 2013 - 06:28:30 MDT

This archive was generated by hypermail 2.2.0 : Tue May 28 2013 - 12:00:07 MDT