In this section, we'll lead you through the set of bean configurations required to explicitly configure both a connection to an external LDAP server and the LdapAuthenticationProvider interface required to support authentication against an external server. As with other explicit bean-based configurations, you really want to avoid doing this unless you find yourself in a situation where the capabilities of the security namespace style of configuration will not support your business or your technical requirements. In which case, read on!
Explicit LDAP bean configuration
Configuring an external LDAP server reference
To implement this configuration, we'll assume that we have a local LDAP server running on port 10389...