问题原文
原帖链接 · 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
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
