Versions Compared

Key

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

Anchor
top
top
Image Removed
Image Added
Article donated by: Hernan Cunico

...

More information about these two projects can be found at the ApacheDS project URL:

http://directory.apache.org/subprojects/apacheds/projects/index.htmlImage Added

At this point, Geronimo does not provide a LDAP client commands for configuring the server. You can use any LDAP client such as ldapbrowser/editor, jxplorer or gq for browsing and editing the configurations of the Directory Server in Geronimo.

...

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

http://localhost:8080/ldap-demoImage Added

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

Image RemovedImage Added

Click on Protect to validate against the LDAP Directory Server.

Image RemovedImage 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 RemovedImage 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. Now, if you go back to the welcome page and click on Forbidden you should receive a 403 - Forbidden HTTP error similar as the one shown in the following figures.

If you are using Jetty as the Web container:
Image Removed Image Added

If you are using Apache Tomcat as the Web container:
Image Removed Image Added

Back to Top