Skip to content
Advertisement

Tag: spring-ldap

spring-ldap auto fetch operational fields

Gooday, Were working on a tool that lets users change there password (generated). And I’m walking in to a litle problem where using Spring Ldap (2.1.0.RELEASE). Now we want to set some of the operational attributes. This is the code I use: Now as long the operational attribute pwdReset is never set this bit of code works fine. But if

Best practice for configuring Spring LdapTemplate via annotations instead of XML?

For a Spring Boot application, I successfully configured a Spring LdapTemplate using annotations, including the LdapContextSource dependency with @Values from application.properties. (Woot! I couldn’t find an example, so maybe this will help others.) The snippets (below) setup the context source, inject it into an LdapTemplate, and autowire that into my DirectoryService. Is there a better/cleaner way to setup the ContextSource

Advertisement