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 ..