For When You Can't Have The Real Thing
[ start | index | login ]
start > cyrus > saslpasswd2

saslpasswd2

Created by dave. Last edited by dave, 20 years and 71 days ago. Viewed 10,394 times. #1
[edit] [rdf]
labels
attachments
This is the utility for creating, changing, and deleting users and passwords from the local sasl database (usually /etc/sasldb2).

You can run it either as root or the cyrus admin user (in our case, cyrus). Check the ownership of the sasl database if you are unsure.

Invocation is insultingly easy:

$ /usr/local/sbin/saslpasswd2 -c user

For some reason, the auth.log records whining about being unable to change the database.

More exciting options:

# saslpasswd2

This product includes software developed by Computing Services at Carnegie Mellon University (>>http://www.cmu.edu/computing/).

saslpasswd2: usage: saslpasswd2 [-v] [-c [-p] [-n]] [-d] [-a appname] [-f sasldb] [-u DOM] userid -p pipe mode -- no prompt, password read on stdin -c create -- ask mechs to create the account -d disable -- ask mechs to disable/delete the account -n no userPassword -- don't set plaintext userPassword property (only set mechanism-specific secrets) -f sasldb use given file as sasldb -a appname use appname as application name -u DOM use DOM for user domain -v print version numbers and exit

So if you are creating a domain-specific user, you'd do something like:

saslpasswd2 -c steve -u domain.com
no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt