O'Reilly logo

Spring Security 3 by Peter Mularien

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Integrating with an external LDAP server

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required