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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.