IBM i Global

IBM i Global

Connect, learn, share, and engage with IBM Power.

 View Only
  • 1.  User password Length check in IBM i

    Posted Wed March 06, 2024 12:20 PM

    Hello,

    There are some old profiles in the system whose password set to not expire and password rule on the system is to use minimum length of 15 characters. So auditors are checking which profile has password length less that 15 characters. How can i check that , is there any way to query to check length of password for user profiles in the system? 

    Please provide you feedback. Thank you so much!



    ------------------------------
    Ujwala Kavathekar
    ------------------------------


  • 2.  RE: User password Length check in IBM i

    Posted Thu March 07, 2024 02:31 AM

    Hello Ujwala,

    To my knowledge there is no way to check the length of passwords on IBM i. I do hope I am 100 % here, because if there was, it would be a security breach. Once you know the length of a password guessing what it is becomes a lot easier doen it not?

    When you keep a record of when system values are changed, including all the password related ones, you know when the password length was implemented. With that date you can run a query on the password change date, below an example:

    SELECT AUTHORIZATION_NAME,  TEXT_DESCRIPTION, PASSWORD_CHANGE_DATE
        FROM QSYS2.USER_INFO
        WHERE PASSWORD_CHANGE_DATE <= Current date - 300 days
        order by PASSWORD_CHANGE_DATE ;

    Please replace the "Current date - 300 days" by the correct date of the password length change date or adjust the number of days accordingly. 

    Hopefully this helps.

    Greetings,



    ------------------------------
    Rudi Van Helvoirt
    ------------------------------



  • 3.  RE: User password Length check in IBM i

    Posted Thu March 07, 2024 08:59 AM

    @Rudi Van Helvoirt Thank you so much for your response 



    ------------------------------
    Ujwala Kavathekar
    ------------------------------



  • 4.  RE: User password Length check in IBM i

    Posted Fri March 08, 2024 05:09 PM

    Greetings,   Yes for sure there is NO way to get the details on the length of a user password.  But the IBM I has lots of knobs that allow you to make passwords very complicated.  Length, Repeat characters, Passphrases, special chars, and more.  There is a new iSee video that was just recorded today to help with this very topic!!  Should be published next week. Please watch 

    https://learn.common.org/products/ibm-isee-video-blog 

    for details.   

    Tim



    ------------------------------
    Tim Rowe
    ------------------------------



  • 5.  RE: User password Length check in IBM i

    Posted Fri March 08, 2024 03:28 AM

    Hi

    I agree that you can't know the password length. However you can at least see if it is10 characters or less.

    You can look for the PASSWORD_LEVEL_0_1 field in the USER_INFO table, and if the value is YES the password is (probably) not longer than 10 characters.

    That's not exactly what you need, but it's the best approach I can think of.



    ------------------------------
    CARLOS MARTIN
    ------------------------------



  • 6.  RE: User password Length check in IBM i

    Posted Fri March 08, 2024 11:02 AM

    Thank you @Carlos Martín



    ------------------------------
    Ujwala Kavathekar
    ------------------------------



  • 7.  RE: User password Length check in IBM i

    Posted Mon March 11, 2024 04:45 AM

    I think the problem is that you can only see the current system values; these may not have been in force when the non-expiring passwords were originally set.

    As people have indicated, the system does not allow anyone to see the password (or other attributes). 

    The only way, I can think of, to check this is to contact the owners of the accounts with non-expiring passwords and ask them to confirm the length of the passwords. I'm guessing they are service accounts and I hope you have enough information to figure out who to contact.



    ------------------------------
    Tony Davis
    ------------------------------