To register connector stubs in an LDAP registry, you must start an LDAP server. The LDAP server you use is your choice, although the schema for representing Java objects in an LDAP directory must be known to the server. See the Request For Comments (RFC) document RFC 2713for details.
Once you have started your LDAP server, in to create a directory context under which you have the permission to create new nodes, create a new component suffix:
dc=Test |
See the documentation accompanying your LDAP server for details of how to configure the server and create this suffix. Alternatively, if you already have the appropriate rights of node creation under an existing node, you can use that node instead. In that case, you must replace dc=Test with the name of your node wherever dc=Test appears in these examples.
For your convenience, set the following LDAP parameters as environment variables:
The name of the machine running your LDAP server (ldap_host):
$ ldaphost=ldap_host |
The port the LDAP server is running on (ldap_port):
$ ldapport=ldap_port |
The LDAP common name attribute, which in these examples is “Directory Manager”:
$ principal="cn=Directory Manager" |
The password required by your LDAP server:
$ credentials=your_ldap_password |
The address of the LDAP server:
$ jndildap="ldap://$ldaphost:$ldapport" |
You are now ready to run the different lookup service examples.