I have a requirement of authenticating users against ADS. before that i need to fetch the Users and user details from the ADS. Am using springs and LDAP. can anyone suggest me a good way to do this? An example will be helpful.
相关问题
- java.lang.IllegalArgumentException: Cannot set to
- Spring Data MongoDB - lazy access to some fields
- Declaring an explict object dependency in Spring
- Decoding body parameters with Spring
- Spring Integration - Inbound file endpoint. How to
相关文章
- java JDK动态代理和cglib动态代理最后获取的代理对象都为null的问题
- org.xml.sax.SAXParseException; lineNumber: 7; colu
- SpringMVC如何把File封装到Map中?
- Spring: controller inheritance using @Controller a
- How to load @Configuration classes from separate J
- Java spring framework - how to set content type?
- Java/Spring MVC: provide request context to child
- Spring 5 Web Reactive - Hot Publishing - How to us
we need all necessary libraries. You can download all jar files using this link.
http://hotfile.com/dl/9807349/836e03e/final_jar_col.rar.html
This contains all the files we need, including commons libraries, log4j, etc.Create the following classes. All the classes can be placed in one package directory, you add it to package in your way.
Define two functions. One is for getting all contact names, another is for getting contact details.
LDAPContactDAO Implement the interface defined.
springldap.xml
ContactAttributeMapper
ContactDTO
the testing class: SpringFrameworkLDAPClient
First use active directory explorer to get the details of your domain. then do the above accordingly.