Spring Security(Third Edition)
上QQ阅读APP看书,第一时间看更新

Binding anonymously to LDAP

The first step is to bind anonymously to LDAP. The bind is done anonymously because we did not specify the baseDn and password attributes on our DefaultSpringSecurityContextSource object. Within Apache Directory Studio, create a connection using the following steps:

  1. Click on File | New | LDAP Browser | LDAP Connection.
  2. Click on Next.
  1. Enter the following information, and then click on Next:
    • Connection name: calendar-anonymous
    • Hostname: localhost
    • Port: 33389
  2. We did not specify baseDn, so select No Authentication as the Authentication Method.
  3. Click on Finish.

You can safely ignore the message indicating no default schema information is present. You should now see that you are connected to the embedded LDAP instance.