Forum Discussion

jk20004_44080's avatar
jk20004_44080
Icon for Nimbostratus rankNimbostratus
Mar 17, 2015

special cahracters in ldap result

in a ldapquery result APM escapes special characters for example 0x4AC3B67267 for the givenname. in the release notes (Behavior changes in 11.6.0) i found the solution to use %{session.my.variable:noconv} to get a "normal" value.

 

i tested this in a SAML config where we need the value and in a iRule unsuccessful.

 

is there any other way to get a normal value

 

3 Replies

  • what have you tested with your (unsuccessful) iRule? How it looks like?
  • he_qiang_137361's avatar
    he_qiang_137361
    Historic F5 Account

    You can store the binary value, taking 0x4AC3B67267 for example, to the session variable, then just let LDAP query agent automatically escapes the characters as necessary.

     

    For example, the following command:

     

    binary format H* 0x4AC3B67267

     

    Will return the binary representation of the string 0x4A 0xC3 0xB6 0x72 0x67, put it into the session variable and the LDAP query agent will escape, if needed.

     

  • the solution is a ENG HF Version where the mcget -decode will work.