

The AD username that is used to connect to the LDAP: TestLDAPConnUsr and its password - of all, make sure that the OpenLDAP client is installed on your system: dpkg -l | grep ldapĬheck for the LDAP account ADUser1 in the container with the DN name “OU=Users,OU=London,OU=UK,DC=theitbros,DC=com”.Īn LDAP server typically accepts incoming connections on port 389 using TCP or UDP protocols.FQDN name of the domain controller.Let’s try to use the ldapsearch utility in Linux Debian to test connectivity to an Active Directory domain controller (target LDAP server). -z - sizelimit on the data size in the search query result.-w - specify password in the command prompt when running LDAP query.

-D - use the username to connect to the server.-x - use plain authentication, not SASL.-L (-LL, -LLL) - output format (-L – LDIFv1, -LL – disable comments display, -LLL - disable LDIF version display).-A - display attributes only, without values.-n - display actions that will be performed, but not run them.
