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

ldap.entry-name

 
 

Library: Interfaces, LDAP support (OMLDAP)
Import: omldap.xmd
Return type: String
Returns: 

A stream.


Declaration

  define external stream function ldap.entry-name
     of read-only ldap.attribute entry

  Where:

Argument definitions

entry
An ldap.attribute containing the current entry.


Purpose

This function returns the distinct name of the current entry.

The following example outputs the name of each entry satisfying the search criteria.

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
   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 ] [ LEGACYLIBRARIES ] [ ERRORS ]

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:45:25 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.