IBM Verify

IBM Verify

Join this online user group to communicate across Security product users and IBM experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Custom Password Rule to constrain password generator

    Posted Thu November 28, 2024 07:08 AM

    Hi everyone,

    Anybody with experience developing Java Extensions for ISVG?

    We are developing a custom Rule Password and we are trying to constrain the password generation on the constrain(PasswordGenerator generator) method.

    In this constrain() method, we have visibility of the parameter from the custom Rule Password indicated on the Password Policy, but we also need the UID user from the user who is changing the pass.
    We have the context information on the validationInfo of the validate(String password, ValidationInfo validationInfo) method, from where we can obtain the user ID, but we need it before this validation, in the constrain() method, previous to password generation.

    We have tried to create an instance of the class PasswordRuleValidation who implements ProvisioningValidationInfo, but the constructors of the class need any parameter such as "AccountEntity account" and we don´t have that parameter to instance of.

    Does know someone how to instantiate any Object in our custom Rule Password class to get user ID, essentially in the constrain method?

    Thanks in advance.



    ------------------------------
    Rafael García
    ------------------------------


  • 2.  RE: Custom Password Rule to constrain password generator

    Posted Thu November 28, 2024 08:52 AM

    I am sorry - my knowledge of Password Rules is not sufficient to support your query.

    I suggest that you create a support case to get the advice needed as the documentation on how the password rules works seems somewhat sparse...

    A general point - IMHO it is not a good idea to restrict passwords - this is something that was used when passwords were short (e.g 8 character length) - instead force the users to use passphrases with a decent length, mandate passkeys (if possible) and do not force users to change password regularly if the length is sufficient to make the password relatively secure (and best - if possible get rid of end user passwords and use passkeys instead).

    Now - that general advice is void if you have e.g. a mainframe without passphrases.... but then somebody should really start fixing that... 



    ------------------------------
    Franz Wolfhagen
    WW IAM Solution Engineer - Certified Consulting IT Specialist
    IBM Security Expert Labs
    ------------------------------



  • 3.  RE: Custom Password Rule to constrain password generator

    Posted Mon December 02, 2024 04:41 AM

    Hi Franz, 

    In our particular case, we need to constrain the password due the Standard Password Generator of ISIM, creates a length password according to the length Password Policy, so if our custom Rule don´t allow so many characters, ISIM will try anyway to generate a new password in a loop (20,000 times it´s harcoded in ISIM), always with the same length, and for some users, we need to indicate the Password Generator a specific minor length, limited by the final systems that we work with. 

    As you mentioned, we haven´t passphrases, I'll stick with your idea.

    We opened a support case too.

    Thanks again for your advices.



    ------------------------------
    Rafael García
    ------------------------------



  • 4.  RE: Custom Password Rule to constrain password generator

    Posted Mon December 02, 2024 05:22 AM

    The best solution is probably to utilize the standard password generator and feed it the correct size and restrictions. 

    I know that is sometimes easier said than done - but a small hint that many people does not know - ISVG IM/ISIM implements a "search for closest" policy in the org tree - so you can utilize the org tree to have specific policies for services when they are searched on top of the direct assignment to the services/profles/global assignment.

    Another possibility is to define a pseudo service (e.g. a hosted ITIM service) to which you apply your very specific password policies - and then you can utilize the JavaScript Enrole.generatePassword() or Account.getAndDecryptPassword().

    Of course it is also possible to write your own generator as outlined here : Adding a customized password generator - but there is lack of good samples which is why I am not sure how to do that...

    HTH and good luck



    ------------------------------
    Franz Wolfhagen
    WW IAM Solution Engineer - Certified Consulting IT Specialist
    IBM Security Expert Labs
    ------------------------------