Info |
---|
This page applies to Java Broker versions before 0.14. For up to date documentation, please refer to the Security section in the Java Broker book. |
The Qpid Java Broker has a single reference source (PrincipalDatabase) that defines all the users in the system.
...
The plain file has the following format:
No Format |
---|
# Plain password authentication file.
# default name : passwd
# Format <username>:<password>
#e.g.
martin:password
|
...
The location of the password file in use for your broker is as configured in your config.xml file.
Code Block | ||||
---|---|---|---|---|
| ||||
<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>
|
...
If you wish to use Base64 encoding for your password file, then in the <class> element abive above you should specify org.apache.qpid.server.security.auth.database.Base64MD5PasswordFilePrincipalDatabase
The default is:
Code Block | ||||
---|---|---|---|---|
| ||||
<conf>${prefix}/etc</conf>
|
...
The Base64MD5 file uses the following format:
No Format |
---|
# Base64MD5 password authentication file
# default name : qpid.passwd
# Format <username>:<Base64 Encoded MD5 hash of the users password>
#e.g.
martin:X03MO1qnZdYdgyfeuILPmQ==
|
...