ldapsearch
Verified for current stable LTS
Ldapsearch Command: Combine Multiple Ldap Boolean Filters
Use for combine multiple ldap boolean filters with Ldapsearch. Exact CLI syntax to combine multiple ldap boolean filters using Ldapsearch.
When to use this: Use for combine multiple ldap boolean filters with Ldapsearch.
Command Syntax
ldapsearch -D '<admin_DN>' -w '<password>' -h <ldap_host> '(&(<memberOf=group1>)(<memberOf=group2>)(!(<memberOf=group3>)))' displayName ldapsearch -D '<admin_DN>' -w '<password>' -h <ldap_host> '(&(<memberOf=group1>)(<memberOf=group2>)(!(<memberOf=group3>)))' displayName Command Breakdown
-D- Command Option
- Tool-specific option used by this command invocation.
-w- Command Option
- Tool-specific option used by this command invocation.
-h- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to combine multiple ldap boolean filters using Ldapsearch.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Ldapsearch Command: Invert Ldap Filter
ldapsearch -D '<admin_DN>' -w '<password>' -h <ldap_host> -b <base_ou> '(!(memberOf=<group1>))' displayName Ldapsearch Command: Limit Ldap Query Response Time ldapsearch -D '<admin_DN>' -w '<password>' -h <ldap_host> -b <base_ou> '<memberOf=group1>' -l 7 displayName Ldapsearch Command: Query Ldap Server Members By Group ldapsearch -D '<admin_DN>' -w '<password>' -h <ldap_host> -b <base_ou> '<memberOf=group1>' displayName Ldapsearch Command: Query Ldap Server Members By Group No Newline Password File ldapsearch -D '<admin_DN>' -u '<password_file>' -h <ldap_host> -b <base_ou> '<memberOf=group1>' displayName Ldapsearch Command: Return Limited Ldap Items ldapsearch -D '<admin_DN>' -w '<password>' -h <ldap_host> -b <base_ou> '<memberOf=group1>' -z 5 displayName