# 使用 Homebrew, apk, dnf, pacman, zypper, Nix 安装 cyrus-sasl

查看 cyrus-sasl 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:cyrus-sasl
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cyrus-sasl
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add cyrus-sasl
```

  证据: Alpine Linux edge package indexes: cyrus-sasl from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install cyrus-sasl
```

  证据: Fedora Rawhide package metadata: cyrus-sasl from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- pacman (92%):

```sh
sudo pacman -S cyrus-sasl
```

  证据: Arch Linux sync databases: cyrus-sasl from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install cyrus-sasl
```

  证据: openSUSE Tumbleweed package metadata: cyrus-sasl from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#cyrus_sasl
```

  证据: nixpkgs package indexes: pkgs/by-name/cy/cyrus_sasl/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:cyrus-sasl
- **软件包管理器:** Homebrew
- **版本:** 2.1.28
- **来源摘要:** Simple Authentication and Security Layer
- **主页:** <https://www.cyrusimap.org/sasl/>
- **仓库:** <https://github.com/cyrusimap/cyrus-sasl>
- **最后更新:** 2026-07-18T21:09:23-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- pluginviewer (别名)
- saslauthd (别名)
- sasldblistusers2 (别名)
- saslpasswd2 (别名)
- testsaslauthd (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.1.28
## 项目历史与用法

Cyrus SASL is the Cyrus project's C implementation of the Simple Authentication and Security Layer API. It lets client and server applications plug in authentication mechanisms such as PLAIN, SCRAM, GSSAPI, OTP, EXTERNAL, and others without each application implementing every mechanism itself.

### 项目历史

The official documentation ties Cyrus SASL to the Carnegie Mellon Cyrus project, originally an enterprise mail-system effort interested in scalable, administrable systems. Cyrus SASL split out the authentication layer as a reusable library for both client and server writers.

The modern documentation describes Cyrus SASL as an implementation of the SASL specification, with Cyrus IMAP as one major consumer but not the only one. The package includes the library, authentication daemons and utilities, mechanism plugins, and sysadmin/developer documentation.

The documentation still carries upgrade material for SASLv1 to SASLv2 applications, which reflects the library's long service life across older mail and network-service deployments.

### 采用历史

Cyrus SASL became infrastructure rather than an end-user app: mail servers, LDAP stacks, Kerberos/GSSAPI deployments, and other network services could depend on a common SASL implementation. The official feature list shows plugins for local databases, PAM, SQL, LDAP, Active Directory, Kerberos, proxied IMAP auth, and multiple SASL mechanisms.

Package managers keep Cyrus SASL available because many other packages need headers, libraries, plugins, or command-line utilities such as saslauthd and saslpasswd2. It is the sort of package that appears quietly in dependency trees and becomes visible when authentication fails.

### 使用方式

Administrators use Cyrus SASL by installing the library and desired plugins, selecting mechanisms, configuring application-specific SASL options, and optionally running saslauthd. Application developers link against libsasl and use callbacks or configuration files to let SASL perform authentication and authorization services.

The installation guide documents application configuration through the application's own config callback or through per-application SASL configuration files such as /usr/lib/sasl/Appname.conf.

### 为什么软件包爱好者会关心

Cyrus SASL is package-nerd-significant because it is glue code for authentication. It is not flashy, but it explains why mail, LDAP, and Kerberos-capable server packages often drag in sasl libraries, mechanism plugins, and helper daemons.

### 时间线

- 1990s: Cyrus project at Carnegie Mellon builds scalable mail-system infrastructure.
- 2006: RFC 4422 defines the modern SASL framework referenced by Cyrus SASL documentation.
- 2016: cyrusimap/cyrus-sasl repository appears on GitHub.
- 2022: Cyrus SASL 2.1.28 documented as the latest stable version on the official site.

### Related projects

- Cyrus IMAP uses Cyrus SASL for mail-server authentication support.
- Kerberos, LDAP, PAM, SQL databases, and SASL mechanism RFCs are common integration points.
- OpenLDAP and other network services are frequent downstream users of SASL libraries.

### 来源

- <https://www.cyrusimap.org/sasl/>
- <https://www.cyrusimap.org/sasl/sasl/installation.html>
- <https://github.com/cyrusimap/cyrus-sasl>
- <https://github.com/cyrusimap/cyrus-sasl#readme>
- <https://raw.githubusercontent.com/cyrusimap/cyrus-sasl/master/doc/legacy/index.html>
- <https://www.rfc-editor.org/rfc/rfc4422>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: /usr/lib/sasl2/<application>.conf, /etc/sasl2/<application>.conf
## 其他软件包管理器记录

- Nix - cyrus_sasl: normalized package name match | nixpkgs package indexes: pkgs/by-name/cy/cyrus_sasl/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - cyrus-sasl - 2.1.28-r9: normalized package name match | Alpine Linux edge package indexes: cyrus-sasl from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Cyrus Simple Authentication Service Layer (SASL) | https://www.cyrusimap.org/sasl/
- apk - cyrus-sasl-crammd5 - 2.1.28-r9: normalized package name match | Alpine Linux edge package indexes: cyrus-sasl-crammd5 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Cyrus SASL plugin for crammd5 | https://www.cyrusimap.org/sasl/
- apk - cyrus-sasl-dev - 2.1.28-r9: normalized package name match | Alpine Linux edge package indexes: cyrus-sasl-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Cyrus Simple Authentication Service Layer (SASL) (development files) | https://www.cyrusimap.org/sasl/
- apk - cyrus-sasl-digestmd5 - 2.1.28-r9: normalized package name match | Alpine Linux edge package indexes: cyrus-sasl-digestmd5 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Cyrus SASL plugin for digestmd5 | https://www.cyrusimap.org/sasl/
- apk - cyrus-sasl-doc - 2.1.28-r9: normalized package name match | Alpine Linux edge package indexes: cyrus-sasl-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Cyrus Simple Authentication Service Layer (SASL) (documentation) | https://www.cyrusimap.org/sasl/
- apk - cyrus-sasl-gs2 - 2.1.28-r9: normalized package name match | Alpine Linux edge package indexes: cyrus-sasl-gs2 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Cyrus SASL plugin for gs2 | https://www.cyrusimap.org/sasl/
- apk - cyrus-sasl-gssapiv2 - 2.1.28-r9: normalized package name match | Alpine Linux edge package indexes: cyrus-sasl-gssapiv2 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Cyrus SASL plugin for gssapiv2 | https://www.cyrusimap.org/sasl/
- apk - cyrus-sasl-login - 2.1.28-r9: normalized package name match | Alpine Linux edge package indexes: cyrus-sasl-login from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Cyrus SASL plugin for login | https://www.cyrusimap.org/sasl/
- apk - cyrus-sasl-ntlm - 2.1.28-r9: normalized package name match | Alpine Linux edge package indexes: cyrus-sasl-ntlm from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Cyrus SASL plugin for ntlm | https://www.cyrusimap.org/sasl/
- apk - cyrus-sasl-openrc - 2.1.28-r9: normalized package name match | Alpine Linux edge package indexes: cyrus-sasl-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Cyrus Simple Authentication Service Layer (SASL) (OpenRC init scripts) | https://www.cyrusimap.org/sasl/
- apk - cyrus-sasl-scram - 2.1.28-r9: normalized package name match | Alpine Linux edge package indexes: cyrus-sasl-scram from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Cyrus SASL plugin for scram | https://www.cyrusimap.org/sasl/
- apk - cyrus-sasl-sql - 2.1.28-r9: normalized package name match | Alpine Linux edge package indexes: cyrus-sasl-sql from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Cyrus SASL plugin for sql | https://www.cyrusimap.org/sasl/
- apk - cyrus-sasl-static - 2.1.28-r9: normalized package name match | Alpine Linux edge package indexes: cyrus-sasl-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Cyrus Simple Authentication Service Layer (SASL) (static library) | https://www.cyrusimap.org/sasl/
- apk - libsasl - 2.1.28-r9: normalized package name match | Alpine Linux edge package indexes: libsasl from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Cyrus Simple Authentication and Security Layer (SASL) library | https://www.cyrusimap.org/sasl/
- dnf - cyrus-sasl - 2.1.28-37.fc45: normalized package name match | Fedora Rawhide package metadata: cyrus-sasl from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | The Cyrus SASL library | https://www.cyrusimap.org/sasl/


## Combined YAML source

View the package source record on GitHub. [combined/cyrus-sasl.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cyrus-sasl.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
