Drone : Configuration Users This page last changed on Jan 07, 2005 by gbevin. The web interface of Drone offers an authenticated administration interface. This interface allows administators to change the bot's running status and maintainers to install or remove the database structures that are required for the modules. The users and passwords are setup in the file `users.xml`, for example:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <credentials>
    	<user login="drone">
    		<password>password</password>
    		<role>admin</role>
    		<role>remote</role>
    	</user>
    	<user login="setup">
    		<password>password</password>
    		<role>admin</role>
    		<role>setup</role>
    	</user>
    </credentials>
The tags should be totally intuitive. People with the `admin` rule will not be able to install or remove the database structure and people with the `setup` credentials have full permissions. The `remote` permission allows people to access Drone's web interface that allows you to remotely post messages to IRC. Now that everything is configured, you're probably aching to run the bot. ## Securing your password Since it's often not recommended to store you password in clear text, you can use RIFE's password encryption methods to encrypt or obfuscate your password before putting them in this file. The following command on the console will print out the usage help:
    java -cp lib/rife-0.8.2.jar com.uwyn.rife.tools.StringEncryptor
In short, if your password is 'humdiedum' and you want to encrypt it with a SHA algorythm, you do this:
    java -cp lib/rife-0.8.2.jar com.uwyn.rife.tools.StringEncryptor -e SHA:humdiedum
and you get
    SHA:lZThBSPqkCkq3st9sGshP7+RVwI=
You can use this string instread of you password in the `users.xml` file. The supported encryption prefixes are: SHA, MD5 and OBF.

Document generated by Confluence on Feb 15, 2005 12:31