|
Size: 473
Comment:
|
← Revision 3 as of 2014-02-03 02:32:28 ⇥
Size: 479
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'/>"