It is likely that once you test basic integration with the embedded LDAP server you will want to interact with an external LDAP server. Fortunately, this is very straightforward, and can be done using slightly different syntax along with the same
<ldap-server> instruction we provided to set up the embedded LDAP server.
The following code is a sample configuration used to connect to an external LDAP server on port 10389:
<ldap-server url="ldap://localhost:10389/dc=jbcppets,dc=com" id="ldapLocal" manager-dn="uid=admin,ou=system" manager-password="secret"/>
The notable differences here (aside from the LDAP URL) are that the DN and password for an account are provided. The account (which is actually optional) ...