swirl
Guide to OmniMark 8   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
      Other Library Functions  
function  

ldap.open

 
 

Library: LDAP support (OMLDAP)
Import: omldap.xmd

Declaration

define external function ldap.open
              value string  host
     on       value integer port     optional
     user     value string  user     optional
     password value string  password optional

Argument definitions

host
The host you want to connect to.
port
The port number you want to connect to.
user
The userid you want to use to connect to the LDAP server. If not specified, the userid 'anonymous' will be used.
password
The password you use to connect to the LDAP server. If not specified, the password will be blank.


Purpose

The ldap.open function opens a connection to an LDAP server.

In this example, a connection to an LDAP server is opened and then immediately terminated:

  import "omldap.xmd" prefixed by ldap.
  
  process
     local ldap.connection my-ldap
     set my-ldap to ldap.open "www.stilo.com"
     ldap.close my-ldap

If your LDAP server is at a different port number, or requires a distinguished name and password for authentication, you may specify these with the ldap.open call. For example:

  import "omldap.xmd" prefixed by ldap.
  
  process
     local ldap.connection my-ldap
  
     set my-ldap to ldap.open 'www.stilo.com'
                           on 123
                         user "cn=guest"
                     password "omnimark"
     ldap.close my-ldap

        Other Library Functions
   ldap.add-entry
   ldap.advance-entry
   ldap.attribute
   ldap.close
   ldap.connection
   ldap.create-attribute
   ldap.delete-entry
   ldap.entry-exists
   ldap.entry-name
   ldap.modify-entry
   ldap.name
   ldap.omldap-version
   ldap.open
   ldap.reader
   ldap.rename-entry
   ldap.retrieve-values
   ldap.search
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACY LIBRARIES ] [ ERRORS ]

OmniMark 8.2.0 Documentation Generated: March 13, 2008 at 3:27:39 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2008.