How to set up SQUID with LDAP authentication with AD backend

Solution Verified - Updated -

Issue

  • Attempting to configure SQUID as caching proxy server with LDAP authentication
  • LDAP backend is AD server
  • Failed to configure with usage example in Procedure 2.a of Product Documentation1
  • Failed to authenticate user when running the command manually

    /usr/lib64/squid/basic_ldap_auth -b "cn=users,cn=accounts,dc=example,dc=com" -D "uid=proxy_user,cn=users,cn=accounts,dc=example,dc=com" -W /etc/squid/ldap_password -f "(&(objectClass=person)(uid=%s))" -ZZ -H ldap://ldap_server.example.com:389
    bob password
    ERR Success
    

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Active Directory (AD)
  • Squid proxy caching server
    • squid-3.5
    • squid-4.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content