Layer7 API Management

  • 1.  Any sample logic code to write into ldap attribute

    Broadcom Employee
    Posted Feb 05, 2019 11:41 AM

    Any sample logic code to write into ldap attribute. Currently i have been using this new assertion and i get incorrect responses from gateway.

     

    I've reviewed the updated documentation on this feature located here: Write LDAP Assertion - CA API Gateway - 9.4 - CA Technologies Documentation 

     

    I got following error while modifying into Ldap.

     

    Error:-  ldapWrite.error.msg ="com.l7tech.external.assertions.ldapwrite.server.ServerLdapWriteAssertion$LdapException: Invalid LDIF syntax"

     

    We use ODSEE 11g (LDAP) and attached assertion used for write ldap.

    We are adding “last timestamp” of a user into LDAP.



  • 2.  Re: Any sample logic code to write into ldap attribute

    Broadcom Employee
    Posted Feb 05, 2019 01:15 PM

    karthik.chennojwala Please add your assertion here also if you can send through an LDIF file for a user as some of the timestamp capabilities are may not be modified this way.

     

    Sincerely,

     

    Stephen Hughes

    Broadcom Support



  • 3.  Re: Any sample logic code to write into ldap attribute

    Posted Feb 05, 2019 01:28 PM
      |   view attached

    Thanks Stephen. I have got the success result by tweaking the write assertion, I think replace attribute is mandatory.

     

     

     

     

     

    Regards

    Karthik C

    817-967-1383



  • 4.  Re: Any sample logic code to write into ldap attribute

    Broadcom Employee
    Posted Feb 05, 2019 02:15 PM

    Karthik,

     

    The replace attribute is required to change the attribute.

     

    Excerpt from the docs:

    Changetype: Modify

    To add, replace, or delete attributes:

    1. Select the Changetype Modify.
    2. Click Add.
    3. Add entries that describe the Modify operations to perform. These operations available are: add, replace, delete. Separate each operation with a hyphen. You can add multiple entries for attributes that are multi-valued.

    Sincerely,

     

    Stephen Hughes

    Broadcom Support