| Access Method Build Specifics for LDAP Applications
There are eight steps to setting up to build this example LDAP application:
- Install Novell's LDAP C SDK and documentation from
http://www.developer.novell.com/ndk.
- An LDAP program will need to load certain DLLs in the SDK in order to
access NDS. Copy the Ldapsdk, Ldapssl, Ldapx, and nssl DLLs from the SDK's Bin
directory into the directory that will contain the executable requiring NDS
access, if you have one (OrgChart or OrgBuilder for example). This way, the
executable can find and load the SDK DLLs when it is run.
- Install the latest version of Novell's cryptographic support modules for
Windows clients from http://www.novell.com/products/cryptography.
- To obtain a certificate for an SSL/LDAP connection:
- Login to the server running NDS as "admin" so that ConsoleOne can access its LDAP configuration objects in the following steps.
- Launch ConsoleOne.
- Obtain the name of the LDAP certificate key material object from the LDAP server object's SSL Configuration properties page.
- Open the LDAP certificate key material object's "certificates" properties page.
- Display the "Trusted Root" certificate information by pressing the arrow on the Certificate page's tab.
- Select "Export" on the Certificate page to save the certificate to a location you can remember. The name must not be changed from "TrustedRootCert.der" .
- Copy the certificate file (.der) into the directory that will contain your
LDAP executable code (OrgChart or OrgBuilder). This makes it possible for the
executable to find and open the certificate file when it is run.
- If you haven't already done so, create your project.
- Add the Ldapsdk, Ldapssl, and Ldapx LIB files from the SDK's Lib directory
to your project.
- Add access paths to your build for the include and lib directories in the
LDAP SDK (your lab source will be including LDAP.h and LDAP_SSL.h).
For information on setup to run an LDAP application, refer to
Generic Access Method Setup.
|