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

ldap.advance-entry

 
 

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

Declaration

define external function ldap.advance-entry
   modifiable ldap.attribute entry

Argument definitions

entry
An ldap.attribute containing the current entry.


Purpose

After a search using ldap.search, this function will advance to the next entry of the search result.

The shelf my-entry references the first entry that satisifed the search, keyed by the attribute name.

ldap.advance-entry advances to the next entry satisfying the search. ldap.entry-exists returns false when there are no more entries.

  import "omldap.xmd" prefixed by ldap.
  
  process
     local ldap.connection my-ldap
     local ldap.attribute my-entry variable
  
     set my-ldap to ldap.open 'www.stilo.com'
     ldap.search my-ldap
        base  "o=stilo.com"
        where  "(Department=RD)"
        into   my-entry
  
     repeat
        exit unless ldap.entry-exists my-entry
        output ldap.entry-name of my-entry || "%n"
        ldap.advance-entry my-entry
     again

      Other Library Functions
 
 

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

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:38:10 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.