Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To test the LDAP application open a Web browser and access the following URL:

http://localhost:8080/ldap-demo-1

The following figure shows the welcome page for the LDAP sample application.

Image Added

Click on Protect to validate against the LDAP Directory Server.

Image Added

Enter system as the username and manager as the password and click Login. The username and password you provide here is the same you use to access the Geronimo Web console and it is stored in the Directory Server database. Once you are logged in you should see the following screen.

Image Added

At this point you have an application that is validating username and passwords against an LDAP Directory Server database based on the security configuration you provided earlier in the LDAP realm. Now, if you go back to the welcome page and click on Forbidden you should receive a 403 - Forbidden HTTP error similar to the one shown in the following figure.

Image Added

Depending on the web container you are using (that is Jetty or Tomcat) the presentation of that screen may be slightly different.
Back to Top