#!/bin/sh echo "##### anonymous" ldapsearch -LLL -v -x -b DC=company,DC=org -h 127.0.0.1 '(objectClass=inetOrgPerson)' > search-results-anonymous.ldif echo "##### rootdn" ldapsearch -LLL -v -x -b DC=company,DC=org -D CN=ldapmaster,DC=company,DC=org -w ldapsecret -h 127.0.0.1 '(objectClass=inetOrgPerson)' > search-results-rootdn.ldif echo "##### authorized user" ldapsearch -LLL -v -x -b DC=company,DC=org -D UID=admin@localhost,OU=users,DC=company,DC=org -w qwerty -h 127.0.0.1 '(objectClass=inetOrgPerson)' > search-results-auth.ldif