click me  

Installing Netscape Directory SDK for Java - (Version 4.0)

  Return to Netscape Directory Resources Home Page.


Introduction / Downloading

The Netscape Directory SDK 4.0 for Java provides programmers and developers with the tools to needed to develop directory-enabled software. The latest release of the Netscape Directory SDK for Java is 4.0 and can be downloaded from:

http://developer.netscape.com/tech/directory/downloads.html

This article provides the instructions for installing and configuring the Netscape Directory SDK for Java for the UNIX / Linux platform.

Build Instructions
The following instructions are provided to build the SDK software:

  1. Unzip the file ldapjdk41.zip into a directory like:
    # mkdir /usr/local/NetscapeDirectoryJavaSDK
    # cd NetscapeDirectoryJavaSDK
    # unzip ldapjdk41.zip

  2. Set the environment variable LDAPSDKHOME to the directory you install the SDK in:
    # LDAPSDKHOME=/usr/local/NetscapeDirectoryJavaSDK
    # export LDAPSDKHOME

  3. Next, make sure that the following two JAR files are in your CLASSPATH environment variable:
    # CLASSPATH=$CLASSPATH:$LDAPSDKHOME/packages/ldapjdk.jar:$LDAPSDKHOME/packages/ldapfilt.jar:$LDAPSDKHOME/tools
    # export CLASSPATH

  4. Re-read your .profile to accept the new environment variable settings:
    # . .profile

  5. Compile all of the command-line tools for the SDK implementation:
    # cd $LDAPSDKHOME/tools
    # javac *.java

  6. The following is a list of the directories created in the SDK toolkit:

    • <LDAPSDKHOME>/doc - Contains the entire documentaion set for the SDK in HTML format.

    • <LDAPSDKHOME>/examples - Contains many code examples, including code that calls the SDK from JavaScript and code that uses LDAP JavaBeans.

    • <LDAPSDKHOME>/tools - Contains command-line tools source code that implements the functionality of the platform-native command-line tools included with Netscape Directory Server.

    • <LDAPSDKHOME>/beans - Contains LDAP JavaBean class files.

    • <LDAPSDKHOME>/packages - Contains two JAR files that contain the classes of the SDK. Make sure you also have a Java compiler (javac) in your PATH. The compiler must be version 1.1 or Later (1.2 or later for GUI examples).

  7. If you are on the Internet and wish to test the LDAPSearch application, try the following from the tools directory:
    # java LDAPSearch -h memberdir.netscape.com -b "o=netcenter.com" "objectClass=*"
    
      dn: o=netcenter.com
      objectClass: top
      o: netcenter.com
    
      dn: cn=Directory Administrators, o=netcenter.com
      objectClass: top
      cn: Directory Administrators
    
      dn: ou=member_directory,o=netcenter.com
      objectClass: top
      ou: member_directory
    
      dn: ou=people,o=netcenter.com
      objectClass: top
      ou: people
    
      dn: ou=groups,o=netcenter.com
      objectClass: top
      ou: groups
    
      dn: uid=syncProcess,ou=People, o=netcenter.com
      objectClass: top
      givenName: sync
      sn: Process
      mail: lancea@netscape.com
      uid: syncProcess
      cn: syncProcess
    
      dn: uid=application, ou=People, o=netcenter.com
      objectClass: top
      givenName: app
      sn: Mr.app
      mail: lancea@netscape.com
      uid: application
      cn: application
    
      dn: uid=operations, ou=People, o=netcenter.com
      objectClass: top
      givenName: status
      sn: operations
      mail: akira@netscape.com
      uid: operations
      cn: ops
    
      dn: uid=usanet, ou=People, o=netcenter.com
      objectClass: top
      givenName: usanet
      sn: test user
      mail: akira@netscape.com
      uid: usanet
      cn: USA.Net
    
      dn: uid=mozilla, ou=People, o=netcenter.com
      objectClass: top
      givenName: mozilla
      sn: Mr. Address Book
      mail: akira@netscape.com
      uid: mozilla
      cn: AddressBook



Last modified on: Tuesday, 26-Jul-2005 20:28:04 EDT
Page Count: 3813