misc_scripts/ldap_basic/ldapsearch.sh

3 lines
250 B
Bash
Raw Normal View History

2024-10-28 05:23:24 +00:00
ldapsearch -D cn=ldapadmin,dc=example,dc=com -w Y0ur4dm!nPwd -b dc=example,dc=com $*
# Takes any number of arguments: atrib=value or '(filter)'
# If no arguments specified, it perform `ldapsearch` without arguments and prints all the matching results