Building a Java LDAP Application
This page last changed on Jun 23, 2008.
edocs Home > BEA AquaLogic Data Services Platform 3.0/3.2 Documentation > ALDSP 3.2 New Features Documentation How To Build a Java LDAP ApplicationThis topic describes how to build the LDAP sample Java application, ldap_java.jar. The functions in the application can then be used as the basis for a data service. Topic MapSupporting LDAP Server Entries Through Data Services Preparing to Build the Sample ApplicationIn order to run this sample you must have ALDSP 3.2 or 3.01 installed and have downloaded and opened the LDAP sample file. The file can be obtained at: http://edocs.bea.com/aldsp/docs30/code/LdapJavaDsp32.zip
Editing the build.properties FileIf your BEA_HOME is different than C:\bea you will need to modify the build.properties file located in the LdapJavaDsp32 directory to specify the location of the BEA home directory.
Setting the Embedded LDAP Server CredentialsYou need to set the credentials for the embedded LDAP server to match the password configured for the sample application. To configure the LDAP server credentials:
Building the Sample ApplicationThe next step involves building the sample application, including the Java Spring LDAP classes. In a terminal window set up the Ant environment by running the following command:
<WEBLOGIC_HOME>/server/bin/setWLSEnv.cmd To build the sample application:
ant dist This builds the Java Spring LDAP classes.
Testing the Sample ApplicationYou can test the sample application against the LDAP server. To test the sample application run the following command to test the Java Spring LDAP classes:
ant test-app You should see output similar to that shown in the following screen capture.
Next StepRelated TopicsConceptsHow Tos |
Document generated by Confluence on Nov 26, 2008 13:06 |