jabberd2 User Management Utilities 0.1: INTRODUCTION: These utilities provide command-line user management for jabberd2 when using a BerkeleyDB database. They are primarily intended for use with the Slackware 10.2 / jabberd2 2.0s11 virtual appliance available for download at http://www.vmware.com/vmtn/appliances/directory/248, but may work with other jabberd2 installations as well. Note that for the jabberd2_useradd utility to work as intended, the "" option must be enabled in sm.xml. This option is commented out by default. The sm.xml file is normally located at /usr/local/etc/jabberd/sm.xml. Particularly when performing operations that write to the database, that is, all but jabber2d_userls, it is recommended to stop the jabberd2 server. For example: /etc/rc.d/rc.jabberd stop /etc/rc.d/rc.jabberd start The utilities are licensed under the GPL v2. No warranty is expressed or implied. Use at your own risk. REFERENCES: jabberd2 - http://jabberd.jabberstudio.org/2/ GPL - http://www.gnu.org/licenses/gpl.txt HOW TO BUILD: sh build.sh cp -f jabberd2_passwd /usr/local/sbin/ cp -f jabberd2_userdel /usr/local/sbin/ cp -f jabberd2_useradd /usr/local/sbin/ cp -f jabberd2_userls /usr/local/sbin/ USAGE: jabberd2_userls - Lists users: -f DB file name -r Jabber realm (usually the hostname) -w Show passwords Example: jabberd2_userls -f /usr/local/var/jabberd/db/authreg.db \ -r jabber.domain.com jabberd2_useradd - Adds a new user: -f DB file name -r Jabber realm (usually the hostname) -u User to add -w New password Example: jabberd2_useradd -f /usr/local/var/jabberd/db/authreg.db \ -r jabber.domain.com \ -u newuser \ -w password jabberd2_userdel - Deletes a user: -f DB file name -r Jabber realm (usually the hostname) -u User to delete Example: jabberd2_userdel -f /usr/local/var/jabberd/db/authreg.db \ -r jabber.domain.com \ -u olduser jabberd2_passwd - Changes a user's password: -f DB file name -r Jabber realm (usually the hostname) -u User to change -w New password Example: jabberd2_passwd -f /usr/local/var/jabberd/db/authreg.db \ -r jabber.domain.com \ -u user \ -w newpw