Use ldapsearch to verify LDAP authentication information

Source: Internet
Author: User
Tags ldap ldapsearch samaccountname
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 must run the ldapsearch command .... 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.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.