💾 Archived View for freeshell.de › tldr › ldapsearch.gmi captured on 2022-04-28 at 18:54:02. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

ldapsearch

CLI utility for querying an LDAP directory.

More information.

ldapsearch -D '{admin_DN}' -w '{password}' -h {ldap_host} -b {base_ou} '{memberOf=group1}' displayName
ldapsearch -D '{admin_DN}' -y '{password_file}' -h {ldap_host} -b {base_ou} '{memberOf=group1}' displayName
ldapsearch -D '{admin_DN}' -w '{password}' -h {ldap_host} -b {base_ou} '{memberOf=group1}' -z 5 displayName
ldapsearch -D '{admin_DN}' -w '{password}' -h {ldap_host} -b {base_ou} '{memberOf=group1}' -l 7 displayName
ldapsearch -D '{admin_DN}' -w '{password}' -h {ldap_host} -b {base_ou} '(!(memberOf={group1}))' displayName
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=group1})({memberOf=group3}))' displayName
ldapsearch -D '{admin_DN}' -w '{password}' -h {ldap_host} '(&({memberOf=group1})({memberOf=group2})(!({memberOf=group3})))' displayName
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).

CC-BY