IBM i Access Client Solutions

 View Only
  • 1.  Password issue when using Macro

    Posted Tue February 06, 2024 11:28 AM
    Edited by Andres Parada Wed February 07, 2024 10:41 AM

    Updated:  The problem is solved.

    I didn't realize the password is case-sensitive, sorry.

    ---------------------------------------------------------------------------------

    I am using macro (HAScript) to log in to an AS400 application - Infor Infinium HCM, the UI looks like this:

    username: _______

    password: _______

    (The password input box is masked to never reflect any value/length of input on the UI)

    When the password contains numbers (e.g. AB2000), the macro works perfectly.

    When the password only has English letters (e.g. PAULO), the macro can still run but the application would say: the password is invalid. (I am 100% sure the script is inputting the correct string at the correct place)

    What could be the reason for this?  Thank you so much.



    ------------------------------
    tudis lei
    ------------------------------



  • 2.  RE: Password issue when using Macro
    Best Answer

    IBM Champion
    Posted Wed February 07, 2024 02:07 AM

    Dear Tudis

    Do you use a password that complies to any existing password rules in your IBM i server? Look at relevant system values on this.  

    If there is no complex password rules and assuming that you use purely UK/US English alphabets for the password and not other Latin alphabets,  what is the Host Code Page parameter you specify for your 5250 session?  Check this by selecting from the menu bar Communication --> Configure....   If it is not 037 United State, then you may need to try using proper alphabet supported by the specify Host Code Page.    There may be some other reasons for your issue but this is the only one I'm familiar with.

     



    ------------------------------
    Chance favors only the prepared mind.
    -- Louis Pasteur
    ------------------------------
    Satid S.
    ------------------------------



  • 3.  RE: Password issue when using Macro

    Posted Wed February 07, 2024 06:07 PM
    Thank you for such valuable answer.
     
    The reason for the issue is that I somehow believed the password was case-insensitive.
    So I didn't spend time to perform a simple test,
    instead I was thinking of all sorts of complicated situations...
     
    Thank you for your time sincerely.


    ------------------------------
    tudis lei
    ------------------------------



  • 4.  RE: Password issue when using Macro

    IBM Champion
    Posted Thu February 08, 2024 08:08 AM

    Don't fault yourself.  You may have based your belief on previous experience on systems where the case IS insensitive.  System value QPWDLVL controls this.  "Back in the day" it either didn't exist or, later on, defaulted to level 0.  On new systems it still defaults to level 0.

    https://www.ibm.com/docs/en/i/7.5?topic=passwords-password-level-qpwdlvl

    Many of us have decades of experience and have handled the whole gamut from development to security to upgrades and patches.  Coming in from development it takes a wee bit to garner all this.

    That link above is the whole documentation on this system (software wise, I can get you hardware info too).

    If you have a training budget IBM has several courses on IBM i.  Sometimes you can get bundles.  See more at https://www.ibm.com/training/search?query=ibm%20i

    There are third party courses available also

    https://www.fortra.com/solutions/ibmi-as400/academy

    https://www.400school.com/

    and a plethora of others.



    ------------------------------
    Robert Berendt IBMChampion
    ------------------------------



  • 5.  RE: Password issue when using Macro

    Posted Wed February 07, 2024 02:33 AM

    Hi,

    Would you mind sharing an exported, then obfuscated, .mac file content ?

    For you information, here is a very common macro for a standard IBM i login screen (french):

    <HAScript name="Macro" description="" timeout="30000" pausetime="300" promptall="true" blockinput="true" author="smanceau" creationdate="Apr 13, 2022, 2:34:52 PM" supressclearevents="false" usevars="true" ignorepauseforenhancedtn="true" delayifnotenhancedtn="0" ignorepausetimeforenhancedtn="true" continueontimeout="false">

        <vars>
          <create name="$a1$" type="field" />
        </vars>


        <screen name="Ouverture" entryscreen="true" exitscreen="false" transient="false">
            <description >
                <oia status="NOTINHIBITED" optional="false" invertmatch="false" />
            </description>
            <actions>
                <varupdate name="$a1$" value="&apos;1, 35 : 1, 43&apos;" />
                <if condition="$a1$ == &apos;Ouverture&apos;" >
                    <input value="&apos;USER[tab]&apos;" row="6" col="53" movecursor="true" xlatehostkeys="true" encrypted="false" />
                    <input value="ENCRYPTED_PASSWORD" row="0" col="0" movecursor="true" xlatehostkeys="true" encrypted="true" />
                </if>
            </actions>
            <nextscreens timeout="30" >
                <nextscreen name="Informations" />
            </nextscreens>
        </screen>

        <screen name="Informations" entryscreen="false" exitscreen="true" transient="false">
            <description >
                <oia status="NOTINHIBITED" optional="false" invertmatch="false" />
            </description>
            <actions>
                <varupdate name="$a1$" value="&apos;1, 23 : 1, 57&apos;" />
                <input value="&apos;[enter]&apos;" row="0" col="0" movecursor="true" xlatehostkeys="true" encrypted="false" />
            </actions>
            <nextscreens timeout="0" >
            </nextscreens>
        </screen>

    </HAScript>



    ------------------------------
    Sylvain Manceau
    ------------------------------



  • 6.  RE: Password issue when using Macro

    Posted Wed February 07, 2024 06:16 PM

    Thank you for trying to help.

    The issue was merely my own mistake of ignoring the fact that the password is actually case-sensitive.



    ------------------------------
    tudis lei
    ------------------------------