Defining LDAP search filters for certificate authorization using the CLI

Prev Next

Use the CLI commands in this section to define an LDAP search filter for certificate authorization.

To define an LDAP search filter for certificate authorization:
  1. Go to CLI configuration mode.

    hostname > enable
    hostname # configure terminal
  2. Specify the LDAP search filter for certificate authorization.

    hostname (config) # aaa authorization certificate map-ldap search-filter <filter_string>

    Note

    If the text of the <filter_string> parameter contains spaces, enclose the string with double quotation marks.

    The following example shows how to define an LDAP filter:

    hostname (config) # aaa authorization certificate map-ldap search-filter "(!(cn=Test Cardholder))"
  3. Verify the setting of the LDAP search filter.

    hostname (config) # show aaa authorization certificate
    Certificate based authorization settings:
      LDAP enabled               : yes
      LDAP Match Attribute       : uid
      Certificate field to match : x509-cert-subject
     LDAP Search Filter         : (!(cn=Test Cardholder))
      Username override          : no
  4. Save your changes.

    hostname (config) # write memory