Query ldap from bash

Use ldap-utils.

 ldapsearch -x -h 192.168.10.10 -D "user@example.com" -W -b "cn=users,dc=example,dc=com" -s sub "(cn=+)" cn mail sn