Ldapsearch is used to verify LDAP authentication information. There are countless accounts in the enterprise after the organization is accumulated. one of the better solutions is to use LDAP. However, to verify whether Microsoft's ActiveDirectory authentication is successful, you can use the ldapsearch command. First install: [plain] apt-get install ldap_utils on Ubuntu and then run this command. For example, [plain] root @ gitlab :~ # Ldapsearch-p 389-h $ ldapHost-D "CN = $ firstName $ lastName, OU = China, OU = International, OU = Offices, DC = esri, DC = com "-w" $ pwd "-B" DC = esri, DC = com "-x" sAMAccountName = $ loginName "-p port number-h LDAP server domain name-D binddn, which needs to be obtained from the LDAP administrator, note that CN = $ firstName $ lastName is your user name in Active Directory. first name and last Name binddnUse the Distinguished name binddn to bind to the LDAP directory. for SASL binds, the server I S expected to ignore this value. -w is followed by the password. Use "" To enclose-B search base. You must also obtain the Use searchbase as the starting point for the search instead of the default from the LDAP administrator. -x followed by the username. sAMAccountName cannot be modified with simple authentication instead of SASL. if the information is obtained after execution, the configuration is correct. You can copy the configuration to the system service that needs to connect to LDAP.