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.  Lots of decryption failures on ISIM logs

    Posted 2 days ago

    Hi everyone,

    years ago, due to multiple problems in a migration, ISIM was set to point to an ldap that was "cryptographically unsynched".

    Given that, I know that there are many users whose "erSynchPassword" is no more readable. In addition, user's password management has been externalized (to respect with ISIM) so password unreadability is not a problem.

    Anyway, even when no lifecycle rule is running and ISIM seems to be 'idle', I can read lots and lots of decryption errors like this:

    <Trace Level="MIN">
     <Time Millis="1753697741458"> 2025.07.28 12:15:41.458+02:00</Time>
     <Server Format="IP">emalvisimprod.ssf.local</Server>
     <ProductId>CTGIM</ProductId>
     <Component>com.ibm.itim.dataservices.ldap</Component>
     <ProductInstance>ISIMVa_APP_MEMBER</ProductInstance>
     <LogText><![CDATA[Failed to decrypt a value that is expected to be encrypted [B@28179e3a. See enrole.properties for a list of attributes that are expected to be encrypted.]]></LogText>
     <Source FileName="com.ibm.itim.dataservices.ldap.LdapUtil" Method="decryptPasswordAttribute"/>
     <Thread>WebContainer : 11</Thread>
     <Exception><![CDATA[com.ibm.itim.util.EncryptionException: CTGIMO047E An error occurred while processing a decryption request on object or property value erglobalid=8629953131307928992,ou=0,ou=people,erglobalid=00000000000000000000,ou=terna,dc=com::AttributeValues: ersynchpassword. The following error occurred.
    Error: Given final block not properly padded 
    at com.ibm.itim.util.EncryptionManager.decrypt(EncryptionManager.java:1045)...
    Does someone of you know why ISIM is continously trying to decypher person's passwords?
    Of course I would like to stop this behaviour (if possible), where should I look at?
    Thank you for your answers.
    Ciao


    ------------------------------
    Andrea Gatto
    ------------------------------


  • 2.  RE: Lots of decryption failures on ISIM logs

    Posted 2 days ago

    Every time an entity that contains an encrypted attribute the system will probably try to decrypt that attribute. 

    So in this case there is an activity going on for the person mentioned. That can be regular handling of persons such as an DSML feed running - or you may have scheduled tasks in the RDBMS schedule that should have been cleaned up.

    Anyway - you need to get these problems fixed - either by redoing the migration (probably too late) or fixing all the records - this is no easy task - my best advice is to open a support case and get some external help from e.g. IBM Expert Labs to help on what can be done... 



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



  • 3.  RE: Lots of decryption failures on ISIM logs

    Posted 2 days ago

    Ciao Franz, 

    thank you for really fast answer.

    In the meantime I've discovered who is triggering the decryption function: the 'search users' function in the administrative gui (/itim/console).

    I don't know why, but it seems that ISIM tries to decypher the pwd attributes for every person returned.

    Anyway, no problem (or at least, a solvable problem), knowing the root cause was in this case more important than the issue itself.

    And, definitely, the old passwords must be fixed (or erased). I think a well designed assembly line could help.

    Thank you!

    Ciao 



    ------------------------------
    Andrea Gatto
    ------------------------------



  • 4.  RE: Lots of decryption failures on ISIM logs

    Posted 2 days ago

    I can explain that.

    When the dataservices method is retrieving the data from the ldap it is checking whether the entity has encrypted attributes. If so - it decrypts the attribute values (or in your case fails and logs the message). So when the Java dataservices object lives in memory it contains the decrypted values so that it does not need to decrypt when doing subsequent work on the object. 

    The ersynchpassword is used when creating new accounts where password syncronization is enabled - so if you do not use that you can set it to some dummy value. you may also need to handle the password in the account add workflows so that you can handle the situation if password syncronization is enabled...

    HTH



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



  • 5.  RE: Lots of decryption failures on ISIM logs

    Posted 2 days ago

    I forgot - do not use an SDI AL unless you use APIs to update the stuff.

    You can write a custom operational person workflow that does the job and then roll it out using an LCR starting with a single (test) user....



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



  • 6.  RE: Lots of decryption failures on ISIM logs

    Posted 2 days ago

    Good point: I don't want SDI to write a bunch of new "isim-unreadable" passwords. (I will not use api in this case)

    Let ISIM do the crypto job.

    Thank you again, you saved me a round of failed tests.

    Ciao



    ------------------------------
    Andrea Gatto
    ------------------------------



  • 7.  RE: Lots of decryption failures on ISIM logs

    Posted 2 days ago

    Hello, 

    You can remove these attributes from ldap with any ldap tool or SDIor a lifecycle like Franz pointed out already. Just remove from one person and/or account to see if any issue occurs. 

    There is also erhistoricalpassword attribute on accounts. That stores the "previous passwords" user used.It's binary in format , maybe you would want to check these too.I am not sure this is affected by ldap encryption or encryption key of ISIM. <disregard if there is no log/error about this>

    Either way, if you don't need these attributes or just want to clean them, you can remove any or all of these with lifecycles and using <entity>.removeProperty(). Just a script and modify account box would be enough. While doing with SDI you have to return null and use null behaviours. LC is easier but slower mostly. 

    If you have passwords -somehow :) -, you can also re-fill "ersyncpassword" if you need them via .setAndEncryptPassword() and another lifecycle. We have used this method and its decryptor (getAndDecrypt) to transfer passwords between two systems for example. 

    erPersonPassword is the same it's used when pass sync is disabled. But it can stay there even if you change the setting. A person can have both because of this. 

    Hope these helps. 



    ------------------------------
    Ali Malik Gürbüz
    Bilgibirikim A.S - Turkey/EMEA
    IBM Business Partner
    13+ Years with ISIM/ISVG etc.
    5.2.5 Certified Exam Developer *I* - 2019
    IBM Champion 2025
    ------------------------------



  • 8.  RE: Lots of decryption failures on ISIM logs

    Posted 2 days ago

    If you are using defaults the historical passwords are hashed - not encrypted. They are normally only used in password policies to ensure that you are not reusing an old password.

    I have never tried just to delete the ersynchpassword - that may be a simple solution - but I would definitely do thoroughly test of password/suspend/restore/account creation to verify that the system is able to handle the missing attribute.

    Also be aware you may also have issues with all your services if you haven't already changed passwords there...



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



  • 9.  RE: Lots of decryption failures on ISIM logs

    Posted 2 days ago

    Thank you so much for your time, I will keep in mind for sure all of your advices when designing and testing (and hopefully deploy in production) the solution.

    I'll come back and tell you about the solution adopted.

    Thanks again!

    Ciao



    ------------------------------
    Andrea Gatto
    ------------------------------