LDAP Development Summary and ldap Summary

Source: Internet
Author: User
Tags ldap

LDAP Development Summary and ldap Summary
Preface

The requirement of a recent project is to read some data in the AD domain and save it to the database. Therefore, I have studied LDAP.

Thanks for the information provided at the following link:

    http://wibiline.iteye.com/blog/1840739

    http://aa00aa00.iteye.com/blog/1276936

    http://www.cnblogs.com/forbreak/archive/2012/10/30/2746464.html

    http://cgs1999.iteye.com/blog/1574635

    http://www.cnblogs.com/awpatp/archive/2010/02/14/1668097.html

 

Project requirements

It is known that a node "CN = Authorization2, CN = Program Data Test, DC = cayzlh, DC = com" needs to obtain the relevant attributes of a node under the node and extract them, save it to the database.

Solve the problem

Call the getInstance () method of this class in the external class to obtain the helper Object and initialize the LdapContext object.

Tools

The tool used during the development process is the ADSI editor to view and edit the corresponding attributes in the domain service. Open Mode:

Source code

I wrote a simple demo, which is a web version. Maybe there are some problems. Just change it. You can download and play ..

: Http://files.cnblogs.com/files/chenanyu/LdapTest.zip

I haven't posted a blog for a long time. Sorry for the shortcomings ..

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.