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 database
  • pwcheck_method:passwd β€” use the traditional /etc/passwd
  • pwcheck_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 use setuid/setgid and 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 (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 🌟


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