Prerequisites of testing
To be able to test pqMessenger it is necessary to have in addition to the installation of the application itself:
- An OpenLDAP server installation + pqChecker plug-in on the same server machine
- A functional installation of a MoM, e.g. Apache ActiveMQ Artemis
- At least one valid person entry in the OpenLDAP server to test passwords broadcast
- A way to send and receive messages from the MoM (Apache Artemis provided an optional interface that allows it)
Setting
Set up the settings:
- The MoM:
- Create a Topic called PwdChannel and a test user who has read and write rights to this Topic.
- Set the MoM logs to a sufficient level to monitor the flow of messages
- pqMessenger: customize the «pqmessenger.yml» file for the test
- Parameter servers: a single server, set host and port to the values used for the MoM (e.g. localhost and 61614)
- login and password parameters: set to the values of the MoM test user, see the MoM parameter setting above
- activetls parameter: set to false to disable TLS and make the test easier to perform
- pqMessenger logs: Set the log level to «debug» in the file «log4j2.xml»
Test and tuning
A test that include the entire functional features of the communication performed by pqMessenger will proceed as follows:
- Start the MoM, then pqMessenger. Check the success of connection to the MoM in the pqmessenger logs: /var/log/pqmessenger/pqmessenger.log
- Create a subscription to the PwdChannel Topic of the MoM
- Send a message to read the passwords quality parameters and check the response message
- Send a message to change the passwords quality parameters. Check that these parameters have actually been modified: contents of the pqparams.dat file
- Modify the password of a person contained in the directory. Check in the MoM logs that the broadcast message for this password has been sent