public class ResetPasswords
extends java.lang.Object
This can be run from the DOS prompt.
The -f argument specifies the name of the properties file. If this param is not specified, the default "maximo.properties" is used.
The -i argument specifies the name of the input file for passwords. The file extension is assumed to be "bytes", and should not be specified. If this param is not specified, no file is used.
The -k parameter specifies the directory of the properties file. There is no default.
The -z parameter indicates to force the user to change password upon the next login, and writes password history.
Constructor and Description |
---|
ResetPasswords(java.sql.Connection con,
java.util.Properties properties,
java.lang.String sysUser,
boolean forceChange,
java.lang.String sysPassword,
java.lang.String pswdFilename) |
ResetPasswords(java.sql.Connection con,
java.util.Properties properties,
java.lang.String sysUser,
boolean forceChange,
java.lang.String sysPassword,
java.lang.String pswdFilename,
java.lang.String paramUserid)
Update database.
|
Modifier and Type | Method and Description |
---|---|
void |
bytefileUpdate(java.lang.String pswdFilename)
For passwords with maxtype CRYPTOX or CRYPTO that should get other than the default value.
|
static void |
main(java.lang.String[] argv)
Param -f = filename for properties file.
|
boolean |
rowFound(java.lang.String sql) |
public ResetPasswords(java.sql.Connection con, java.util.Properties properties, java.lang.String sysUser, boolean forceChange, java.lang.String sysPassword, java.lang.String pswdFilename) throws java.lang.Exception
java.lang.Exception
public ResetPasswords(java.sql.Connection con, java.util.Properties properties, java.lang.String sysUser, boolean forceChange, java.lang.String sysPassword, java.lang.String pswdFilename, java.lang.String paramUserid) throws java.lang.Exception
java.lang.Exception
updateUser(java.lang.String, boolean)
,
bytefileUpdate(java.lang.String)
public void bytefileUpdate(java.lang.String pswdFilename) throws java.lang.Exception
java.lang.Exception
public boolean rowFound(java.lang.String sql) throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] argv)