ldapsearch
Query an LDAP directory. More information: https://docs.ldap.com/ldap-sdk/docs/tool-usages/ldapsearch.html.
- Query an LDAP server for all items that are a member of the given group and return the object's displayName value:
ldapsearch '' '' '' displayName
- Query an LDAP server with a no-newline password file for all items that are a member of the given group and return the object's displayName value:
ldapsearch '' '' '' displayName
- Return 5 items that match the given filter:
ldapsearch '' '' '' 5 displayName
- Wait up to 7 seconds for a response:
ldapsearch '' '' '' 7 displayName
- Invert the filter:
ldapsearch '' '' '(!(memberOf=))' displayName
- Return all items that are part of multiple groups, returning the display name for each item:
ldapsearch '' '' '(&()()())' "displayName"
- Return all items that are members of at least 1 of the specified groups:
ldapsearch '' '' '(|()()())' displayName
- Combine multiple boolean logic filters:
ldapsearch '' '' '(&()()(!()))' displayName
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
