show users in group: ldapsearch -h . -x -p 389 -b "OU=,DC=,DC=" -D "cn=,OU=,DC=,DC=" -w -L "(memberOf=CN=,OU=,DC=,DC=)" | grep sAMAccountName: | sed 's/sAMAccountName: //'