大网数据广告活动
服务器运维问答

SASL: How to delete all mech entries from a user?

· 52CE 我爱测

I have a problem with my SASL database. sasldblistusers2 shows following entries: [email omitted]: cmusaslsecretCRAM-MD5 [email omitted]: cmusaslsecretPLAIN [email omitted]: userPassword I want to delete this user completely. So …

问题原文

原帖链接 · Daniel Marschall · CC BY-SA 3.0

I have a problem with my SASL database.

sasldblistusers2 shows following entries:

[email omitted]: cmusaslsecretCRAM-MD5
[email omitted]: cmusaslsecretPLAIN
[email omitted]: userPassword

I want to delete this user completely. So I run saslpasswd2 -d -u example.com myuser

Now, sasldblistusers2 shows following entries:

[email omitted]: cmusaslsecretCRAM-MD5
[email omitted]: cmusaslsecretPLAIN

How can I get rid of the other entries? I am searching for hours for a solution how to get rid of the other mechanisms, but I don't find any single information.

已采纳解答

原帖链接 · Tom Shaw · CC BY-SA 3.0

As a last resort, you could try modifying the underlying Berkeley DB database directly. This should only be done with extreme caution: test on a non-production system first, and have a current backup. There's a good chance it simply won't work or could cause issues down the track.

Something like:

db_dump -p /etc/sasldb2 > /tmp/sasldb2.dump
vi /tmp/sasldb2.dump # Find and delete the entries that you don't want
mv /etc/sasldb2 /etc/sasldb2.bak
db_load -f /tmp/sasldb2.dump /etc/sasldb2

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-08-27)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。