psdi.util

Class ResetPasswords

  • java.lang.Object
    • psdi.util.ResetPasswords


  • public class ResetPasswords
    extends java.lang.Object
    This resets all Maximo user passwords to equal the userid. Needless to say, this should be invoked only by an authorized person!

    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 Summary

      Constructors 
      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.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      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) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResetPasswords

        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
        Throws:
        java.lang.Exception
    • Method Detail

      • bytefileUpdate

        public void bytefileUpdate(java.lang.String pswdFilename)
                            throws java.lang.Exception
        For passwords with maxtype CRYPTOX or CRYPTO that should get other than the default value. For maxuser password, also set forceexpiration to False.
        Throws:
        java.lang.Exception
      • rowFound

        public boolean rowFound(java.lang.String sql)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • main

        public static void main(java.lang.String[] argv)
        Param -f = filename for properties file. If not specified, uses maximo.properties. Param -k is the property file directory. Param -i is the password filename (optional). Param -u is the userid to be updated (optional). If not specified, all users are updated. Param -z will force users to change password at next login.