Security

 View Only
  • 1.  Clearpass LDAP The specified filter query cannot be parsed.

    Posted Oct 19, 2022 11:20 PM

    we change the LDAP Authentication filter to :

    (&(|(sAMAccountName=%{Authentication:Username})(userPrincipalName=%{Authentication:Username}))(objectClass=user))

    and it seems that it has syntax error as when filter is chosen we receive :
    The specified filter query cannot be parsed.

    Any thoughts what might be wrong?



  • 2.  RE: Clearpass LDAP The specified filter query cannot be parsed.

    Posted Oct 20, 2022 02:45 AM
    I'm using the same exact filter without any issues. Check if you have attribute userPrincipalName in your LDAP schema. By default it should be there.

    Best, Gorazd

    ------------------------------
    Gorazd Kikelj
    ------------------------------



  • 3.  RE: Clearpass LDAP The specified filter query cannot be parsed.

    Posted Oct 20, 2022 10:46 AM
    Hi, I normally use this one. That is the same in principle but written diferently.

    (|(&(objectClass=user)(sAMAccountName=%{Authentication:Username}))

        (&(objectClass=user)(userPrincipalName=%{Authentication:Username})))



    I hope this helps


  • 4.  RE: Clearpass LDAP The specified filter query cannot be parsed.

    Posted Oct 20, 2022 10:31 PM
    2022-10-21 05:20:50,256 [Th 282 Req 462670 SessId R0000289d-01-63520201] ERROR RadiusServer.Radius - rlm_ldap: ldap_search() failed: Bad search filter: (|(&(objectClass=user)(sAMAccountName=LABPC$)) (&(objectClass=user)(userPrincipalName=LABPC$)))
    2022-10-21 05:20:50,283 [Th 282 Req 462670 SessId R0000289d-01-63520201] ERROR RadiusServer.Radius - rlm_ldap: ldap_search() failed: Bad search filter: (|(&(objectClass=user)(sAMAccountName=LABPC$)) (&(objectClass=user)(userPrincipalName=LABPC$)))

    This is what i get ...
    Any Thoughts?


  • 5.  RE: Clearpass LDAP The specified filter query cannot be parsed.

    Posted Oct 21, 2022 09:56 AM
    That filter looks good. Works fine in my lab if I change the computer name to one that exists in my network. You could use an LDAP browser, to test that LDAP query and see if AD shows some error.

    Otherwise, it may be best to get in contact with Aruba Support (through your Aruba partner) to get this issue investigated.

    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------



  • 6.  RE: Clearpass LDAP The specified filter query cannot be parsed.

    Posted Feb 18, 2025 04:15 PM

    I was able to reproduce this same issue on ClearPass 6.10.8, 6.11.10 and 6.12.4, but it seems an intended behavior on "Filter" tab with compound LDAP queries as seen in https://community.arubanetworks.com/discussion/eap-tls-authentication-method-setting-authorization-required, but it should work on Access Tracker requests.