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:
Go to CLI configuration mode.
hostname > enable hostname # configure terminal
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))"Verify the setting of the LDAP search filter.
hostname (config) # show aaa authorization certificateCertificate 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
Save your changes.
hostname (config) # write memory