For quering Active Directory /LDAP from command line, you can run something like
curl -u DOMAIN\\\\MYACCOUNT:MYPASSWORD \\
"ldap://dc.redaelli.org:3268/OU=users,DC=redaelli,DC=org?memberOf,sAMAccountName?sub?(sAMAccountName=matteo)"
Comments:
Saqib Ali - Dec 1, 2018
Super thanks for posting this!