Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This file is currently re-read for every new connection so changes to the file are immediately available to the broker.

Where is the password file for my broker ?

The location of the password file in use for your broker is as configured in your config.xml file.

Code Block
xml
xml

<principal-databases>
            <principal-database>
                <name>passwordfile</name>
                <class>org.apache.qpid.server.security.auth.database.PlainPasswordFilePrincipalDatabase</class>
                <attributes>
                    <attribute>
                        <name>passwordFile</name>
                        <value>${conf}/passwd</value>
                    </attribute>
                </attributes>
            </principal-database>
        </principal-databases>

So in the example config.xml file this password file lives in the directory specified as the conf directory (at the top of your config.xml file).

The default is:

Code Block
xml
xml

 <conf>${prefix}/etc</conf>

Anchor
base64md5
base64md5

Base64MD5

...

  1. Edit the file by hand using the qpid-passwd tool that will generate the required lines. The output from the tool is the text that needs to be copied in to your active password file. (Eventually it is planned for this tool to emulate the functionality of htpasswd for qpid passwd files.) This tools This tool is located in the broker bin directory.

NOTE: For the changes to be seen by the broker you must either restart the broker or reload the data with the management tools (see Eclipse Managament Console Reload Data Tab)

  1. Use the management tools to create a new user (See the Eclipse Managament Console Create User Tab). The changes will be made by the broker to the password file and the new user will be immediately available to the system.

Eventually it is planned for this tool to emulate the functionality of htpasswd for qpid passwd files.

Dynamic changes to password files.

...