basic_ncsa_auth(8)
π basic_ncsa_auth β the NCSA-style passwd whisperer π
okay bestie, we're talking about basic_ncsa_auth, and yes it lives in the System Manager's Manual section 8, where all the cool system-admin tools hang out. it's a Squid helper. it does auth. it's giving β¨gatekeeper but for passwordsβ¨ and honestly? we stan.
β¨ NAME β¨
basic_ncsa_auth β an NCSA httpd-style password file authentication helper for Squid π
πΈ SYNOPSIS πΈ
basic_ncsa_auth passwd file
π¦ DESCRIPTION π¦
so what does this little icon actually do? basic_ncsa_auth lets Squid read and authenticate user + password info out of an NCSA/Apache httpd-style password file whenever it's doing basic HTTP authentication. that's the whole job. it's a specialist. it's not doing too much, it's just doing that one thing flawlessly π
and guess what β that password file is totally manipulable with htpasswd. so you're not stuck hand-editing anything, bestie, you've got tooling.
now here's the tea on what this authenticator will actually accept:
- Blowfish β for passwords 72 characters or less in length π‘
- SHA256 β with salting and magic strings π§
- SHA512 β with salting and magic strings π§
- MD5 β with optional salt and magic strings
- DES β for passwords 8 characters or less in length
NOTE: Blowfish and SHA algorithms require system-specific support. so like. vibe check your system first, okay? π
π OPTIONS π
- the password file β and that's literally it. the only parameter. that's the whole list. one (1) option. periodt.
it must have permissions to be read by the user that Squid is running as. no exceptions, no loopholes, no "but it worked when I ran it as root" π
π CONFIGURATION π
basic_ncsa_auth /etc/squid/squid.pass
basic_ncsa_auth must have access to the password file to be executed. that's the requirement. it's not a suggestion, it's the price of entry π«Ά
π KNOWN ISSUES π
okay this is the part where we get real. DES functionality (which is what htpasswd uses by default, btw) silently truncates passwords to 8 characters. silently. it doesn't warn you. it doesn't text you back. it just cuts them off at 8 and moves on. π
which means it'll happily let someone log in with password values that are shorter than the one you actually wanted. not ideal!! and to be fair to it β this authenticator will reject login with long passwords when using DES. so it's not being sneaky about the rejection part, but the truncation part? yeah. that's the known issue. proceed accordingly bestie πΈ
π AUTHOR π
this manual was written by Amos Jeffries <amosjeffries@squid-cache.org>
based on original documentation by Rodrigo Rubira Branco <rrbranco@br.ibm.com>
give them their flowers, they earned them π
π COPYRIGHT π
* Copyright (C) 1996-2026 The Squid Software Foundation and
contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
* Please see the COPYING and CONTRIBUTORS files for details.
this file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. see the GNU General Public License for more details.
you should have received a copy of the GNU General Public License along with this file; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
π QUESTIONS π
got questions on the usage of this program? send them to the Squid Users mailing list <squid-users@lists.squid-cache.org> β they don't bite, promise π«Ά
π REPORTING BUGS π
- bug reports need to be made in English. see
https://wiki.squid-cache.org/SquidFaq/BugReportingfor details of what you need to include with your bug report. - report bugs or bug fixes using
https://bugs.squid-cache.org/ - report serious security bugs to Squid Bugs
<squid-bugs@lists.squid-cache.org> - got ideas for new improvements? send those to the Squid Developers mailing list
<squid-dev@lists.squid-cache.org>
π SEE ALSO π
squid(8)htpasswd(1)GPL(7)- The Squid FAQ wiki
https://wiki.squid-cache.org/SquidFaq - The Squid Configuration Manual
http://www.squid-cache.org/Doc/config/
and that's the whole page, bestie π this one's dated May 16, 2006, part of the Squid distribution (GPLv2+ gang, contributors worldwide, check the COPYING and CONTRIBUTORS files for the receipts). go forth and authenticate responsibly, mwah ππ¦β¨
π¦ where this page comes from
- alpine 3.23: squid-doc 7.6-r0 Β· GPL-2.0-or-later
- alpine 3.24: squid-doc 7.6-r0 Β· GPL-2.0-or-later
- arch rolling: squid 7.7-1 Β· GPL
- fedora 43: squid 7:7.5-1.fc43 Β· GPL-2.0-or-later AND (LGPL-2.0-or-later AND MIT AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND BSD-4-Clause-UC AND LicenseRef-Fedora-Public-Domain AND Beerware)
- fedora 44: squid 7:7.4-1.fc44 Β· GPL-2.0-or-later AND (LGPL-2.0-or-later AND MIT AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND BSD-4-Clause-UC AND LicenseRef-Fedora-Public-Domain AND Beerware)
- fedora 44: squid 7:7.7-1.fc44 Β· GPL-2.0-or-later AND (LGPL-2.0-or-later AND MIT AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND BSD-4-Clause-UC AND LicenseRef-Fedora-Public-Domain AND Beerware)
- nixos 26.05: squid 7.6
- nixpkgs unstable: squid 7.6
- ubuntu resolute: squid 7.7-0ubuntu0.26.04.1
- ubuntu stonking: squid 7.7-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms