Differences between revisions 2 and 3
Revision 2 as of 2013-06-29 16:39:05
Size: 473
Editor: pD9E77D47
Comment:
Revision 3 as of 2014-02-03 02:32:28
Size: 479
Editor: dx
Comment: small formatting fix
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Here a little script you can use to generate user accounts if you're running with AuthMode=Registered: Here a little script you can use to generate user accounts if you're running with {{{AuthMode=Registered}}}:

Here a little script you can use to generate user accounts if you're running with AuthMode=Registered:

#!/bin/bash

BITLBEE_BIN=/usr/sbin/bitlbee

echo -n 'Username: '
read user
echo -n 'Password: '
read -s pwd; echo
echo -n 'Repeat password: '
read -s pwd2; echo

if [ "$pwd" != "$pwd2" ]; then
        echo "Passwords don't match." >&2
        exit 1
fi

hash=$($BITLBEE_BIN -x hash "$pwd")

echo "<user nick='$user' password='$hash' version='1'/>"

BitlBee Wiki: AuthModeRegistered (last edited 2014-02-03 02:32:28 by dx)