The command line tool now runs over an MBean, namely the 'GuardMaintenanceMBean'

With OX Guard 2.4.0 the database initialisation trigger, which was part of the command line tool ('init'), was removed and incorporated in to the OX Guard backend. The 'init' flag is still there, slightly changed to '--init' and is only used to generate the master keys of the server. One extra flag was introduced '-d' which is used in conjunction with the --init flag. That flag specifies the directory in which the 'oxguardpass' will be stored.

Furthermore, the command line tool now provides the ability to use JMX authentication.

Below, the help screen:

usage: guard [-i [-d /custom/path]] [-t john.doe@example.com] [-u
joan.doe@ox.io] [-e john.doe@example.com] [-n
joan.doe@example.com] [-j jmxUser] [-w jmxPassword] [-x
jmx.host] [-o <JMX_PORT>] [-p <RMI_PORT>] [--responsetimeout
<TIMEOUT>]
-d,--directory <arg> Full path of the 'oxguardpass' file (defaults
to current directory). This flag should be used
in conjunction with the '--init' switch.
e.g. guard --init --directory
/opt/open-xchange/etc/guard
-e,--reset <arg> Resets the specified e-mail address and sends a
new password to the user
e.g. guard --reset john@somewhere.com
-h,--help Prints a help text
-i,--init Initialise guard.
-j,--jmx-user <arg> JMX user
-n,--remove-pin <arg> Removes the PIN for the specified user
e.g. guard --remove-pin john@somewhere.com
-o,--jmx-port <arg> JMX port (default: '9999')
-p,--port <arg> The optional RMI port (default:1099)
-s,--server <arg> The optional RMI server (default: localhost)
-t,--test <arg> Test the specified e-mail address against the
MailResolver
e.g. guard --test john@somewhere.com
-u,--upgrade <arg> Upgrades the specified guest account to an OX
account
e.g. guard --upgrade john@somewhere.com
-w,--jmx-password <arg> JMX password
-x,--jmx-host <arg> JMX host (default: 'localhost')
Command line tool for OX Guard