5 27 2 Using the OpenLDAPService

LANSA Integrator

5.27.2 Using the OpenLDAPService

Whether you are writing your client application in RDML / RDMLX or in a 3GL such as RPG, Cobol, or C, you have to complete the same basic steps.

For example, an application that is going to fetch the employee phone number from an LDAP server would typically issue the following sequence of commands:

JSM(X)_OPENJSM(X)_COMMANDs

     SERVICE_LOAD

          BIND

          GET

          UNBIND

     SERVICE_UNLOAD

JSM(X)_CLOSE

The steps to add, change and delete entries in the directory would be very similar, but using the ADD, MODIFY or DELETE commands in place of the GET command.

Refer to the Java Service Manager Clients for the command details that apply to your chosen development language.