Differences between revisions 1 and 2
Revision 1 as of 2010-08-15 12:53:02
Size: 471
Editor: Wilmer
Comment:
Revision 2 as of 2013-06-29 16:39:05
Size: 473
Editor: pD9E77D47
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
#!/bin/sh #!/bin/bash

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)