Using ldapsearch to list users on Active Directory
List all users in all organizational units in the mydomain.org on the server dc1.mydomain.org using the username “user@mydomain.org” and the password “UserPassword” ldapsearch -v -x -D “user@mydomian.org” -w UserPassword -b “DC=mydomain,DC=org” -H “ldap://dc1.mydomain.org” “(&(objectClass=user))” List all disabled users in all … Continue reading →