Layer7 API Management

  • 1.  Using context variables in ldap query with scope "Base DN"

    Posted May 29, 2018 05:08 PM

    I am trying to do a ldap query in a specific dn using a context variable, but the gateway appear to ignore the variable and use the value as just text.

    My assertion is configured as bellow:

    And I am getting the following error on the gateway log:

     

    2018-05-29T17:57:51.133-0300 WARNING 584 com.l7tech.external.assertions.ldapquery.server.ServerLDAPQueryAssertion: 9026: LDAP Query error: Error searching for LDAP entry: ${_dnUser}: [LDAP: error code 34 - Invalid DN Syntax]; remaining name '${_dnUser}'

     

    Any ideas?

     

    Thanks,

    Eduardo Jandre



  • 2.  Re: Using context variables in ldap query with scope "Base DN"
    Best Answer

    Broadcom Employee
    Posted Jun 12, 2018 09:37 AM

    Hi Eduardo,

     

    This was found to be a problem on earlier versions of the Gateway that was addressed in 9.3 CR2

     

    Resolved Issues - CA API Gateway - 9.3 - CA Technologies Documentation 

     

    DE342088

    Corrected the Query LDAP Assertion to correctly parse context variable in the base DN field.

    Regards,

    Joe