Squid - ncsa_auth MD5 password fails

Solution Verified - Updated -

Issue

$ htpasswd -c ./passwordfile user1
New password:
Re-type new password:
Adding password for user user1
$ echo user1 user1 | /usr/lib64/squid/ncsa_auth ./passwordfile
ERR Wrong password

Using CRYPT passwords works well:
$ htpasswd -d -c ./passwordfile user1
New password:
Re-type new password:
Adding password for user user1
$ echo user1 user1 | /usr/lib64/squid/ncsa_auth ./passwordfile
OK
  • The aim is to use MD5 encryption since CRYPT passwords are 8th characters limited

Environment

  • Red Hat Enterprise Linux (RHEL) 6.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