--- title: "Defining LDAP search filters" slug: "defining-ldap-search-filters-1" tags: ["File Protect (FX)", "Malware Analysis (AX)", "IAM", "Email Security - Cloud", "Network Security (NX)", "Email Security — Server", "Central Management System", "Helix Enterprise", "Endpoint Security (HX)", "Product Usage", "Install and Get Started", "Helix", "Intelligent Virtual Execution "] updated: 2026-09-01T19:03:07Z published: 2026-09-01T19:03:07Z canonical: "docs.trellix.com/defining-ldap-search-filters-1" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Defining LDAP search filters An administrator can define an LDAP search filter in the local configuration that controls which users can log in using LDAP. For example, the filter could prevent users who are not part of a certain LDAP group from logging in. A negative response from the filter takes precedence over a remote authentication server that permits the user to log in. ### Prerequisites - Admin access To specify or remove an LDAP search filter: 1. Go to CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. To configure the LDAP search filter, use the following command: ``` ldap search-filter ``` ### Important If the` <filterString> `contains spaces, enclose the string with double quotation marks. The following example defines a filter that allows "operator" role users in the Acme IT network group to log in using LDAP. ``` hostname (config) # ldap search-filter "(|(memberOf=cn=Operators2,ou=Network Group,dc=acmeit,dc=com)" ``` 3. Remove a search filter: ``` hostname (config) # no ldap search-filter ``` 4. Save your changes: ``` hostname (config) # write memory ``` For command usage and parameters, see the *CLI Reference*. :