You can do this by installing ldap-utils on Ubuntu.
1. sudo apt install ldap-utils 2. ldapsearch -H ldaps://domaincontroller.example.com:636 -x -D "CN=LDAP_Alternate,OU=System Accounts,DC=example,DC=com" -W -b "dc=example,dc=com"
The above string will connect to a specified domain controller of port 636 using simple bind. Simply replace the domaincontroller with your domain controller and update DC=XX as needed.
In this example: example.com: DC=example,DC=comif you found this helpful feel free to donate to:
ZEC: | t1NQp1UuqQbmnXzazbLTSreS2AbaZpRBuTM |
LTC: | LZyNF1qkBUA7XFz83m5xwzGgmmj1owQn9d |
BTC: | 1PY95KFPTEJTR7f2NnSgaB6xB9pwDJkcJz |