💾 Archived View for freeshell.de › tldr › ldapsearch.gmi captured on 2024-07-09 at 01:24:17. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-04-28)
-=-=-=-=-=-=-
CLI utility for querying an LDAP directory.
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).