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.  Problem Storing Binary Data from ITIM's Subform to LDAP

    Posted 08/25/21 10:22 AM
    Hi,
    I would like to ask you if it is possible to store the binary data from ITIM's subform to the ldap. I am trying to create the subform to manage the users avatar images. So far I have managed to get the String (base64) data from subform to ldap by storing the data to the subform's attribute "subFormAttrValue".

    AttributeValue valueAV=(AttributeValue)request.getSession(false).getAttribute("subFormAttrValue");
    valueAV=new AttributeValue("attrToSaveInLdap",attrValue);
    request.getSession(false).setAttribute("subFormAttrValue",valueAV);​


    When I do the same thing with the binary data in type of byte[], the binary won't get to the ldap. Is there some way to do this or there is security concern which prevents writing the binary? Thank you for an advice.

    ------------------------------
    Martin Vit
    ------------------------------


  • 2.  RE: Problem Storing Binary Data from ITIM's Subform to LDAP

    Posted 08/25/21 10:41 AM
    That is an interesting challenge....
    Now - I have never done something similar from a subform - but technically you should be able to do this. Now that does not mean that ISIM Java API supports it - and trying to debug a custom subform in a forum like this is almost dead up front.
    I suggest that you raise a support case and asks if the API actually can handle binary attributes - I would be very surprised if not as many things in ISIM (e.g. ACIs and workflows) are handled as binary attributes - BUT - that does not mean the Attribute/AttributeValue methods are able to the job...

    I know this is not much help and I hope somebody else may have done this (I would be surprised if not - adding images to ISIM as a standard attribute has been a common wish since I started with ISIM almost 20 years ago...) will chime in...

    Anyhow - I hope this helps..

    ------------------------------
    Franz Wolfhagen
    IAM Technical Architect for Europe - Certified Consulting IT Specialist
    IBM Security Expert Labs
    ------------------------------