ldapConnection

data type

Library: LDAP support (OMLDAP legacy)
Include: omldap.xin


Purpose

The ldapConnection OMX component allows you to perform actions on the entire LDAP instance by using the omldap library functions.

The ldapConnection OMX component is created by the OmniMark LDAP dynamic link library file ("omldap.dll" or "omldap.so"). The related include file ("omldap.xin") defines the interface to ldapConnection.

To use omldap OMX components in your program, you must put the following include statement in your program:

        include "omldap.xin"

Within your program, you can create as many instances of the ldapConnection OMX component as you require by declaring global and local variables of type "ldapConnection". For example:

  include "omldap.xin"
  
  process
     local ldapConnection my-ldap
     ...
  
     set my-ldap to ldapOpen 'www.omnimark.com'
     ...

Once you have declared your ldapConnection OMX variables, you can open them with the function ldapOpen in the OmniMark LDAP library to create connections to LDAP servers. For example:

  include "omldap.xin"
  
  process
     local ldapConnection my-ldap
     ...
     set my-ldap to ldapOpen 'www.omnimark.com'
      port 123
      user "cn=guest"
      password "omnimark"