basic_sasl_auth(8)
π basic_sasl_auth β the manual, but make it make sense π
okay bestie, so this is basic_sasl_auth, and it lives in the System Manager's Manual (section 8, the admin one, very grown-up of it). It's a helper for Squid that does Basic Authentication using SASL β and specifically the cyrus-sasl authentication method. It's Version 1.0, which honestly? slay, we love a stable queen. π
β¨ SYNOPSIS β¨
basic_sasl_auth
yeah that's it. no flags. no args. it just is. it's giving low-maintenance icon. π
πΈ DESCRIPTION πΈ
so basic_sasl_auth is an installed binary helper for Squid. that's its whole job and it does it well. π«Ά
SASL is configurable β sorta like PAM, if PAM and SASL were cousins who text each other. Every service that authenticates against SASL identifies itself with an application name, and each application can be configured independently by the SASL administrator. no sharing, no crossover, each app gets its own lil setup. very main character. β¨
π CONFIGURATION π
To configure which authentication method gets used, the file basic_sasl_auth.conf can be placed in the appropriate location β usually /usr/lib/sasl. that's the vibe spot. π
The authentication database is defined by the pwcheck_method parameter. Heads up: only the PLAIN authentication mechanism is used. just PLAIN. no frills. periodt. π
Examples, bestie, in all their glory:
pwcheck_method:sasldbβ use sasldb. this is the default if no conf file is installed. πpwcheck_method:pamβ use the PAM authentication databasepwcheck_method:passwdβ use the traditional/etc/passwdpwcheck_method:shadowβ use the slightly less traditional/etc/shadow
Others methods may be supported by your cyrus-sasl implementation β so consult your cyrus-sasl documentation for information. don't come for me, come for the docs. π
β οΈ okay important one: typically the authentication database (/etc/sasldb,/etc/shadow, PAM) can not be accessed by a normal user. no cap. So you should usesetuid/setgidand an appropriate user/group on the executable to allow the authenticator to access the appropriate password database. If the access to the database is not permitted then the authenticator will typically fail with"-1, generic error". π
Here's how the cool kids do it:
chown root.mail basic_sasl_auth
chmod ug+s basic_sasl_auth
Also! If the application name is basic_sasl_auth, that same name will also be used for the PAM service name if pwcheck_method:pam is chosen. And an example PAM configuration file basic_sasl_auth.pam is also included. matching set, we love to see it. πβ¨
π AUTHOR π
This program was written by Ian Castle <ian.castle@coldcomfortfarm.net>
This manual was written by Ian Castle <ian.castle@coldcomfortfarm.net> and Amos Jeffries <amosjeffries@squid-cache.org>
π 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 program and documentation is copyright to the authors named above.
Distributed under the GNU General Public License (GNU GPL) version 2 or later (GPLv2+). π«‘
π QUESTIONS π
Got questions on the usage of this program? Send them to the Squid Users mailing list <squid-users@lists.squid-cache.org>. the girls that ask questions, honestly. π
π REPORTING BUGS π
Bug reports need to be made in English. See https://wiki.squid-cache.org/SquidFaq/BugReporting for details of what you need to include with your bug report. (iykyk, read it before you send anything π)
Report bugs or bug fixes using https://bugs.squid-cache.org/
Report serious security bugs to Squid Bugs <squid-bugs@lists.squid-cache.org> π₯
Report ideas for new improvements to the Squid Developers mailing list <squid-dev@lists.squid-cache.org> π
π SEE ALSO π
squid(8)SASL(3)PAM(7)passwd(1)shadow(5)chown(1)chmod(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 came from the System Manager's Manual and it's all about basic_sasl_auth(8) β go forth, chown responsibly, and remember: setuid is a big deal, treat her with respect. mwah. πβ¨π
π¦ where this page comes from
- 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